diff --git a/hexa/pipelines/graphql/schema.graphql b/hexa/pipelines/graphql/schema.graphql index ec787ec13..74dbcb707 100644 --- a/hexa/pipelines/graphql/schema.graphql +++ b/hexa/pipelines/graphql/schema.graphql @@ -459,7 +459,6 @@ Represents the result of uploading a pipeline. type UploadPipelineResult { success: Boolean! # Indicates if the pipeline was uploaded successfully. pipelineVersion: PipelineVersion # The uploaded pipeline version. - version: String @deprecated(reason: "Use 'pipelineVersion' field instead") # The version of the uploaded pipeline (deprecated). errors: [PipelineError!]! # The list of errors that occurred during the upload of the pipeline. } diff --git a/hexa/pipelines/schema/mutations.py b/hexa/pipelines/schema/mutations.py index 0d79dd2fe..ada2725d6 100644 --- a/hexa/pipelines/schema/mutations.py +++ b/hexa/pipelines/schema/mutations.py @@ -324,7 +324,6 @@ def resolve_upload_pipeline(_, info, **kwargs): "success": True, "errors": [], "pipeline_version": version, - "version": version.version_number, } except PipelineDoesNotSupportParametersError: return {"success": False, "errors": ["PIPELINE_DOES_NOT_SUPPORT_PARAMETERS"]} diff --git a/hexa/pipelines/tests/test_schema/test_pipelines.py b/hexa/pipelines/tests/test_schema/test_pipelines.py index fddf1376d..dc6e5d1f7 100644 --- a/hexa/pipelines/tests/test_schema/test_pipelines.py +++ b/hexa/pipelines/tests/test_schema/test_pipelines.py @@ -294,7 +294,6 @@ def test_create_pipeline_version(self, parameters=[], config={}): self.assertEqual( { "success": True, - "version": "Version 1", "pipelineVersion": {"name": "Version 1"}, "errors": [], },