Skip to content

Commit

Permalink
Expose StoredWorkflow.creator_deleted_or_purged
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Jan 14, 2025
1 parent 3082bb9 commit cac1195
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/src/api/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
5 changes: 5 additions & 0 deletions lib/galaxy/schema/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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[
Expand Down

0 comments on commit cac1195

Please sign in to comment.