From ebb77d1ec0d24f87adf1b95583bb060fb10c8f7f Mon Sep 17 00:00:00 2001 From: Martin Obersteiner Date: Tue, 24 Sep 2024 11:26:23 +0200 Subject: [PATCH] services: make file-service components configurable --- invenio_rdm_records/services/config.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/invenio_rdm_records/services/config.py b/invenio_rdm_records/services/config.py index 5c4e796ca..b95a54d52 100644 --- a/invenio_rdm_records/services/config.py +++ b/invenio_rdm_records/services/config.py @@ -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.""" @@ -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."""