Skip to content

Commit

Permalink
services: make file-service components configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
martinobersteiner authored and utnapischtim committed Oct 23, 2024
1 parent 1208943 commit ebb77d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions invenio_rdm_records/services/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ class RDMFileRecordServiceConfig(FileServiceConfig, ConfiguratorMixin):

file_schema = FileSchema

components = FromConfig(
"RDM_FILES_SERVICE_COMPONENTS", default=FileServiceConfig.components
)


class ThumbnailLinks(RecordLink):
"""RDM thumbnail links dictionary."""
Expand Down Expand Up @@ -751,6 +755,10 @@ class RDMFileDraftServiceConfig(FileServiceConfig, ConfiguratorMixin):

file_schema = FileSchema

components = FromConfig(
"RDM_DRAFT_FILES_SERVICE_COMPONENTS", default=FileServiceConfig.components
)


class RDMMediaFileDraftServiceConfig(FileServiceConfig, ConfiguratorMixin):
"""Configuration for draft media files."""
Expand Down

0 comments on commit ebb77d1

Please sign in to comment.