Skip to content

Commit de0439f

Browse files
committed
Fix unit tests? Adapter stuff.
1 parent cf4c8e8 commit de0439f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/galaxy/model/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2415,7 +2415,7 @@ class JobToInputDatasetAssociation(Base, RepresentById):
24152415
dataset_id: Mapped[int] = mapped_column(ForeignKey("history_dataset_association.id"), index=True, nullable=True)
24162416
dataset_version: Mapped[Optional[int]]
24172417
name: Mapped[str] = mapped_column(String(255), nullable=True)
2418-
adapter: Mapped[Dict[str, Any]] = mapped_column(JSONType)
2418+
adapter: Mapped[Optional[Dict[str, Any]]] = mapped_column(JSONType, nullable=True)
24192419
dataset: Mapped["HistoryDatasetAssociation"] = relationship(lazy="joined", back_populates="dependent_jobs")
24202420
job: Mapped["Job"] = relationship(back_populates="input_datasets")
24212421

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

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

0 commit comments

Comments
 (0)