Skip to content

Commit

Permalink
feat(rest): make details available for shared workflows
Browse files Browse the repository at this point in the history
Closes #651, closes #650
  • Loading branch information
DaanRosendal committed Mar 13, 2024
1 parent b9e567b commit f8aea96
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions reana_server/rest/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,9 @@ def get_workflow_specification(workflow_id_or_name, user): # noqa
try:
if not workflow_id_or_name:
raise ValueError("workflow_id_or_name is not supplied")
workflow = _get_workflow_with_uuid_or_name(workflow_id_or_name, str(user.id_))
workflow = _get_workflow_with_uuid_or_name(
workflow_id_or_name, str(user.id_), True
)

return (
jsonify(
Expand Down Expand Up @@ -2958,7 +2960,9 @@ def get_workflow_disk_usage(workflow_id_or_name, user): # noqa

if not workflow_id_or_name:
raise ValueError("workflow_id_or_name is not supplied")
workflow = _get_workflow_with_uuid_or_name(workflow_id_or_name, str(user.id_))
workflow = _get_workflow_with_uuid_or_name(
workflow_id_or_name, str(user.id_), True
)
summarize = bool(parameters.get("summarize", False))
search = parameters.get("search", None)
disk_usage_info = workflow.get_workspace_disk_usage(
Expand Down

0 comments on commit f8aea96

Please sign in to comment.