Skip to content

Commit

Permalink
rest: make details available for shared workflows
Browse files Browse the repository at this point in the history
Closes reanahub#651, closes reanahub#650
  • Loading branch information
DaanRosendal committed Dec 15, 2023
1 parent 265e73b commit 7ccdab0
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 7ccdab0

Please sign in to comment.