Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tag processing in library upload #18714

Merged
merged 3 commits into from
Aug 18, 2024

Conversation

davelopez
Copy link
Contributor

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:

tag_handler.apply_item_tag(

Because after the recent changes uploaded_dataset now has a tags attribute, the actual tag processing was done here:

tag_handler.apply_item_tag(item=ldda, user=trans.user, name="name", value=tag, flush=False)

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?

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@github-actions github-actions bot added this to the 24.2 milestone Aug 16, 2024
Copy link
Member

@mvdbeek mvdbeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@bgruening bgruening merged commit 6432629 into galaxyproject:dev Aug 18, 2024
52 of 55 checks passed
@davelopez davelopez deleted the fix_library_upload_with_tags branch August 19, 2024 07:45
@ahmedhamidawan ahmedhamidawan changed the title Fix library upload with tags Fix tag processing in library upload Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API: named tags broken when uploading data to a library
3 participants