Skip to content

Commit

Permalink
rebase into tool request...
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Nov 19, 2024
1 parent 74c06af commit 371589b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1358,25 +1358,26 @@ class ToolRequest(Base, Dictifiable, RepresentById):

tool_source: Mapped["ToolSource"] = relationship()
history: Mapped[Optional["History"]] = relationship(back_populates="tool_requests")
implicit_collections: Mapped[List["ToolRequestImplicitCollectionAssociation"]] = relationship(back_populates="tool_request")


class ToolRequestMappedOverOutputDatasetCollectionAssociation(Base, Dictifiable, RepresentById):
__tablename__ = "tool_request_mapped_over_output_dataset_collection_association"
class ToolRequestImplicitCollectionAssociation(Base, Dictifiable, RepresentById):
__tablename__ = "tool_request_implicit_collection_association"

id: Mapped[int] = mapped_column(primary_key=True)
tool_request_id: Mapped[int] = mapped_column(
ForeignKey("tool_request.id", name="fk_trmoodca_tri"), index=True
ForeignKey("tool_request.id", name="fk_trica_tri"), index=True
)
dataset_collection_id: Mapped[int] = mapped_column(
ForeignKey("history_dataset_collection_association.id", name="fk_trmoodca_dci"), index=True
ForeignKey("history_dataset_collection_association.id", name="fk_trica_dci"), index=True
)
output_name: Mapped[str] = mapped_column(String(255))

tool_request: Mapped["ToolRequest"] = relationship(
back_populates="mapped_over_output_dataset_collection_associations"
back_populates="implicit_collections"
)
dataset_collection: Mapped["HistoryDatasetCollectionAssociation"] = relationship(
back_populates="tool_reqeust", uselist=False
back_populates="tool_request_association", uselist=False
)

dict_collection_visible_keys = ["id", "tool_request_id", "dataset_collection_id", "output_name"]
Expand Down Expand Up @@ -7057,6 +7058,7 @@ class HistoryDatasetCollectionAssociation(
back_populates="dataset_collection",
)
creating_job_associations: Mapped[List["JobToOutputDatasetCollectionAssociation"]] = relationship(viewonly=True)
tool_request_association: Mapped[Optional["ToolRequestImplicitCollectionAssociation"]] = relationship(back_populates="dataset_collection")

dict_dbkeysandextensions_visible_keys = ["dbkeys", "extensions"]
editable_keys = ("name", "deleted", "visible")
Expand Down

0 comments on commit 371589b

Please sign in to comment.