Skip to content

Commit

Permalink
Do not set uuid on dataset imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton authored and mvdbeek committed Sep 20, 2024
1 parent 6370059 commit 9a9c4a8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/galaxy/model/store/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,11 @@ def remap_objects(p, k, obj):
self._attach_raw_id_if_editing(dataset_instance, dataset_attrs)

# Older style...
if 'uuid' in dataset_attrs:
dataset_instance.dataset.uuid = dataset_attrs["uuid"]
if 'dataset_uuid' in dataset_attrs:
dataset_instance.dataset.uuid = dataset_attrs["dataset_uuid"]
if self.import_options.allow_edit:
if 'uuid' in dataset_attrs:
dataset_instance.dataset.uuid = dataset_attrs["uuid"]
if 'dataset_uuid' in dataset_attrs:
dataset_instance.dataset.uuid = dataset_attrs["dataset_uuid"]

self._session_add(dataset_instance)
self._flush()
Expand Down

0 comments on commit 9a9c4a8

Please sign in to comment.