Skip to content

Commit

Permalink
Fix unit tests? Adapter stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Jan 20, 2025
1 parent b5afde6 commit df0e99f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2415,7 +2415,7 @@ class JobToInputDatasetAssociation(Base, RepresentById):
dataset_id: Mapped[int] = mapped_column(ForeignKey("history_dataset_association.id"), index=True, nullable=True)
dataset_version: Mapped[Optional[int]]
name: Mapped[str] = mapped_column(String(255), nullable=True)
adapter: Mapped[Dict[str, Any]] = mapped_column(JSONType)
adapter: Mapped[Optional[Dict[str, Any]]] = mapped_column(JSONType, nullable=True)
dataset: Mapped["HistoryDatasetAssociation"] = relationship(lazy="joined", back_populates="dependent_jobs")
job: Mapped["Job"] = relationship(back_populates="input_datasets")

Expand Down Expand Up @@ -2458,7 +2458,7 @@ class JobToInputDatasetCollectionAssociation(Base, RepresentById):
ForeignKey("history_dataset_collection_association.id"), index=True, nullable=True
)
name: Mapped[str] = mapped_column(String(255), nullable=True)
adapter: Mapped[Dict[str, Any]] = mapped_column(JSONType)
adapter: Mapped[Optional[Dict[str, Any]]] = mapped_column(JSONType, nullable=True)
dataset_collection: Mapped["HistoryDatasetCollectionAssociation"] = relationship(lazy="joined")
job: Mapped["Job"] = relationship(back_populates="input_dataset_collections")

Expand All @@ -2477,7 +2477,7 @@ class JobToInputDatasetCollectionElementAssociation(Base, RepresentById):
ForeignKey("dataset_collection_element.id"), index=True, nullable=True
)
name: Mapped[str] = mapped_column(Unicode(255), nullable=True)
adapter: Mapped[Dict[str, Any]] = mapped_column(JSONType)
adapter: Mapped[Optional[Dict[str, Any]]] = mapped_column(JSONType, nullable=True)
dataset_collection_element: Mapped["DatasetCollectionElement"] = relationship(lazy="joined")
job: Mapped["Job"] = relationship(back_populates="input_dataset_collection_elements")

Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/tools/parameters/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2535,7 +2535,7 @@ def from_json(self, value, trans, other_values=None):
and "src" in value
and ("id" in value or value["src"] == "CollectionAdapter")
):
rval = src_id_to_item(sa_session=trans.sa_session, value=value, security=trans.security)
rval = src_id_to_item_collection(sa_session=trans.sa_session, value=value, security=trans.security)
elif isinstance(value, list):
if len(value) > 0:
value = value[0]
Expand Down

0 comments on commit df0e99f

Please sign in to comment.