Fix tag processing in library upload #18714
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #18700
It seems recent changes make
uploaded_dataset
contain the tags passed in the tool inputs. So before the recent changes, the place where the tags were processed was:galaxy/lib/galaxy/tools/actions/upload_common.py
Line 274 in 64bd95d
Because after the recent changes
uploaded_dataset
now has atags
attribute, the actual tag processing was done here:galaxy/lib/galaxy/tools/actions/upload_common.py
Line 199 in 64bd95d
And this code path was assuming the tags were already parsed.
I think this is the correct fix. This code is old, but the bug was probably uncovered now while the first condition checking the
library_bunch
looked like a workaround. Let me know if that is not the case.How to test the changes?
License