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 CollectionCreatorModal being reopened on history #19276

Conversation

davelopez
Copy link
Contributor

Fixes #19270

The CollectionCreatorModal.hideModal() function is only called on Cancel or when we explicitly set the prop hideModalOnCreate to true. If we don't set this prop, and we create a collection, it leaves the collectionModalShow ref set to true as the event to change it to false never gets fired.

@ahmedhamidawan do you think this might affect other usages of CollectionCreatorModal? Is there any use case for not setting hideModalOnCreate to true by default?

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.

… a collection

The CollectionCreatorModal.hideModal() function is only called on Cancel or when we explicitly set the prop hideModalOnCreate to true. If we don't set this prop, it leaves the `collectionModalShow` ref set to true as the event to change it to false never gets fired.
@jmchilton jmchilton added the release-testing-24.2 Issues stemming from 24.2 release testing process and PRs to address them label Dec 6, 2024
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.

The only reason you wouldn't set that prop to true would be if you wanted to see the collection you successfully created within the modal. But this use case in SelectionOperations was meant to have it as true, I might have overlooked that, so thank you!

@ahmedhamidawan ahmedhamidawan merged commit c554490 into galaxyproject:release_24.2 Dec 6, 2024
27 of 29 checks passed
@davelopez davelopez deleted the 24.2_fix_duplicated_build_collection_modal_on_history branch December 7, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dataset-collections area/histories area/UI-UX kind/bug release-testing-24.2 Issues stemming from 24.2 release testing process and PRs to address them
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants