diff --git a/client/src/api/schema/schema.ts b/client/src/api/schema/schema.ts index 3a7c79e4de31..c59c58093a7e 100644 --- a/client/src/api/schema/schema.ts +++ b/client/src/api/schema/schema.ts @@ -14717,6 +14717,11 @@ export interface components { PageContentFormat: "markdown" | "html"; /** PageDetails */ PageDetails: { + /** + * Author deleted or purged + * @description Whether the author of this Page has been deleted or purged. + */ + author_deleted_or_purged: boolean; /** * Content * @description Raw text contents of the last page revision (type dependent on content_format). @@ -14815,6 +14820,11 @@ export interface components { }; /** PageSummary */ PageSummary: { + /** + * Author deleted or purged + * @description Whether the author of this Page has been deleted or purged. + */ + author_deleted_or_purged: boolean; /** * Create Time * Format: date-time diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index 1ec69bab1c74..dec26e0a3bdf 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -10491,6 +10491,7 @@ class Page(Base, HasTags, Dictifiable, RepresentById, UsesCreateAndUpdateTime): "deleted", "username", "email_hash", + "author_deleted_or_purged", "create_time", "update_time", ] @@ -10517,6 +10518,11 @@ def username(self): def email_hash(self): return md5_hash_str(self.user.email) + # needed to determine how to display page details + @property + def author_deleted_or_purged(self): + return self.user.deleted or self.user.purged + class PageRevision(Base, Dictifiable, RepresentById): __tablename__ = "page_revision" diff --git a/lib/galaxy/schema/schema.py b/lib/galaxy/schema/schema.py index e33053fed0d0..285bcf436cc3 100644 --- a/lib/galaxy/schema/schema.py +++ b/lib/galaxy/schema/schema.py @@ -3788,6 +3788,11 @@ class PageSummary(PageSummaryBase, WithModelClass): title="Encoded email", description="The encoded email of the user.", ) + author_deleted_or_purged: bool = Field( + ..., # Required + title="Author deleted or purged", + description="Whether the author of this Page has been deleted or purged.", + ) published: bool = Field( ..., # Required title="Published",