From ce213c39c65e3b3c3ee5ae3dcb7b491aebd05264 Mon Sep 17 00:00:00 2001 From: zhiren Date: Thu, 20 Apr 2023 10:24:01 -0400 Subject: [PATCH 1/2] remove the block for lineage operation --- app/commands/file.py | 5 ----- app/resources/custom_error.py | 1 - app/services/output_manager/error_handler.py | 1 - 3 files changed, 7 deletions(-) diff --git a/app/commands/file.py b/app/commands/file.py index db943fef..ee007762 100644 --- a/app/commands/file.py +++ b/app/commands/file.py @@ -120,11 +120,6 @@ def file_put(**kwargs): # noqa: C901 thread = kwargs.get('thread') output_path = kwargs.get('output_path') - # for 20230418 staging temporary disable the attribute - # since the backend is not ready yet - if source_file: - SrvErrorHandler.customized_handle(ECustomizedError.LINEAGE_FEATURE_NOT_READY, True) - user = UserConfig() # Check zone and upload-message zone = get_zone(zone) if zone else AppConfig.Env.green_zone.lower() diff --git a/app/resources/custom_error.py b/app/resources/custom_error.py index 6f44bd34..ed47b7be 100644 --- a/app/resources/custom_error.py +++ b/app/resources/custom_error.py @@ -122,5 +122,4 @@ class Error: 'CONTAINER_REGISTRY_NO_URL': ( 'Container registry has not yet been configured. Related commands cannot be used at this time.' ), - 'LINEAGE_FEATURE_NOT_READY': 'Lineage is not support at v2.3.0', } diff --git a/app/services/output_manager/error_handler.py b/app/services/output_manager/error_handler.py index a0344839..4f9ea3f4 100644 --- a/app/services/output_manager/error_handler.py +++ b/app/services/output_manager/error_handler.py @@ -81,7 +81,6 @@ class ECustomizedError(enum.Enum): CONTAINER_REGISTRY_NO_URL = 'CONTAINER_REGISTRY_NO_URL' CONFIG_NOT_FOUND = 'CONFIG_NOT_FOUND' CONFIG_EXIST = 'CONFIG_EXIST' - LINEAGE_FEATURE_NOT_READY = 'LINEAGE_FEATURE_NOT_READY' def customized_error_msg(customized_error: ECustomizedError): From 50c794701649a9cf5d4f56d06f619f501b302692 Mon Sep 17 00:00:00 2001 From: zhiren Date: Thu, 20 Apr 2023 10:37:14 -0400 Subject: [PATCH 2/2] bumpup version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 18304491..7d3638da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "app" -version = "2.3.0" +version = "2.3.1" description = "This service is designed to support pilot platform" authors = ["Indoc Research"]