From cac1195122a36580cc6167263bf8261492a3c9df Mon Sep 17 00:00:00 2001 From: John Davis Date: Tue, 14 Jan 2025 01:11:37 -0500 Subject: [PATCH] Expose StoredWorkflow.creator_deleted_or_purged --- client/src/api/schema/schema.ts | 5 +++++ lib/galaxy/model/__init__.py | 1 + lib/galaxy/schema/workflows.py | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/client/src/api/schema/schema.ts b/client/src/api/schema/schema.ts index c59c58093a7e..f390477a650e 100644 --- a/client/src/api/schema/schema.ts +++ b/client/src/api/schema/schema.ts @@ -16374,6 +16374,11 @@ export interface components { creator?: | (components["schemas"]["Person"] | components["schemas"]["galaxy__schema__schema__Organization"])[] | null; + /** + * Creator deleted or purged + * @description Whether the creator of this Workflow has been deleted or purged. + */ + creator_deleted_or_purged: boolean; /** * Deleted * @description Whether this item is marked as deleted. diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index dec26e0a3bdf..f702ebc4fb79 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -7859,6 +7859,7 @@ def to_dict(self, view="collection", value_mapper=None): rval["latest_workflow_uuid"] = (lambda uuid: str(uuid) if self.latest_workflow.uuid else None)( self.latest_workflow.uuid ) + rval["creator_deleted_or_purged"] = self.user.deleted or self.user.purged return rval diff --git a/lib/galaxy/schema/workflows.py b/lib/galaxy/schema/workflows.py index fbe447108161..a4a8eb30c3b6 100644 --- a/lib/galaxy/schema/workflows.py +++ b/lib/galaxy/schema/workflows.py @@ -225,6 +225,11 @@ class StoredWorkflowDetailed(StoredWorkflowSummary): title="Creator", description=("Additional information about the creator (or multiple creators) of this workflow."), ) + creator_deleted_or_purged: bool = Field( + ..., + title="Creator deleted or purged", + description="Whether the creator of this Workflow has been deleted or purged.", + ) steps: Dict[ int, Annotated[