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

[24.2] Fix to not display upload when creating collections from existing datasets. #19373

Merged
merged 8 commits into from
Jan 9, 2025

Conversation

jmchilton
Copy link
Member

I don't think the dialog option makes sense in that context and it consumes a lot of space. I love the feature overall and it makes perfect sense in the upload modal or when on the tool form and you don't have datasets in the history or you want to add new ones. But having the tab even when you've just selected some history contents or library contents I think feels off. There is a few refactorings of things to prevent a huge copy and paste inside and outside the tab component for this. There might be a better way to make tabbing optional - I'd be happy to hear it but these are still good refactorings I think (just not ideal for a bug fix on a stable release).

How to test the changes?

(Select all options that apply)

  • This is a refactoring of components with existing test coverage.

License

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

@jmchilton jmchilton added kind/bug kind/enhancement area/UI-UX kind/refactoring cleanup or refactoring of existing code, no functional changes area/dataset-collections labels Dec 31, 2024
@jmchilton jmchilton marked this pull request as ready for review December 31, 2024 22:53
@github-actions github-actions bot added this to the 25.0 milestone Dec 31, 2024
@jmchilton jmchilton force-pushed the upload_tab_optional branch from 0f38d54 to b2e2053 Compare January 2, 2025 21:24
Copy link
Member

@ahmedhamidawan ahmedhamidawan left a comment

Choose a reason for hiding this comment

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

Thank you so much for these great improvements! Looks a lot cleaner now, and removing upload in that case makes sense.

@jmchilton
Copy link
Member Author

@ahmedhamidawan Thanks for the review and I'm glad we are on the same page. Do have a better way to make the tabbing optional - the refactoring commits are good but that last commit is a hack? I minimized the copy-paste but there is still some and it has already caused me some headaches downstream in #19377. It is a dev branch concern not a 24.2 concern, but I thought I'd check while you are looking at this.

@jmchilton jmchilton merged commit fed368f into galaxyproject:release_24.2 Jan 9, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dataset-collections area/UI-UX kind/bug kind/enhancement kind/refactoring cleanup or refactoring of existing code, no functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants