Skip to content

Commit

Permalink
Fix test and returned version name
Browse files Browse the repository at this point in the history
  • Loading branch information
YolanFery committed Nov 22, 2024
1 parent 514479b commit 2a49671
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion hexa/pipelines/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}

Expand Down
1 change: 0 additions & 1 deletion hexa/pipelines/schema/mutations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}
Expand Down
1 change: 0 additions & 1 deletion hexa/pipelines/tests/test_schema/test_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ def test_create_pipeline_version(self, parameters=[], config={}):
self.assertEqual(
{
"success": True,
"version": "Version 1",
"pipelineVersion": {"name": "Version 1"},
"errors": [],
},
Expand Down

0 comments on commit 2a49671

Please sign in to comment.