Skip to content

Commit

Permalink
feat(rest): make details available for shared workflows (#658)
Browse files Browse the repository at this point in the history
Closes #651, closes #650
  • Loading branch information
DaanRosendal authored and mdonadoni committed Aug 20, 2024
1 parent af24cc2 commit 8c9ecaf
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 @@ -790,7 +790,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 @@ -2969,7 +2971,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 8c9ecaf

Please sign in to comment.