Skip to content

Commit

Permalink
Merge pull request #18263 from mvdbeek/page_summary_fix
Browse files Browse the repository at this point in the history
[24.0] Set page importable to false when serializing
  • Loading branch information
mvdbeek authored May 31, 2024
2 parents 93a0785 + 4823139 commit 8dd7a9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10135,6 +10135,10 @@ class Page(Base, HasTags, Dictifiable, RepresentById, UsesCreateAndUpdateTime):

def to_dict(self, view="element"):
rval = super().to_dict(view=view)
if "importable" in rval and rval["importable"] is None:
# pages created prior to 2011 might not have importable field
# probably not worth creating a migration to fix that
rval["importable"] = False
rev = []
for a in self.revisions:
rev.append(a.id)
Expand Down

0 comments on commit 8dd7a9e

Please sign in to comment.