mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Always return serialized workflow when updating
This is more predictable, just returning the payload if there are no changes isn't that useful.
This commit is contained in:
@@ -566,9 +566,6 @@ class WorkflowsAPIController(BaseAPIController, UsesStoredWorkflowMixin, UsesAnn
|
||||
)
|
||||
except workflows.MissingToolsException:
|
||||
raise exceptions.MessageException("This workflow contains missing tools. It cannot be saved until they have been removed from the workflow or installed.")
|
||||
else:
|
||||
# We only adjusted tags and menu entry
|
||||
return payload
|
||||
else:
|
||||
message = "Updating workflow requires dictionary containing 'workflow' attribute with new JSON description."
|
||||
raise exceptions.RequestParameterInvalidException(message)
|
||||
|
||||
Reference in New Issue
Block a user