Skip to content

[26.0] Fix HDCA lost in tool form on rerun#22258

Merged
mvdbeek merged 2 commits intogalaxyproject:release_26.0from
mvdbeek:rerun_hdca_fix
Mar 26, 2026
Merged

[26.0] Fix HDCA lost in tool form on rerun#22258
mvdbeek merged 2 commits intogalaxyproject:release_26.0from
mvdbeek:rerun_hdca_fix

Conversation

@mvdbeek
Copy link
Copy Markdown
Member

@mvdbeek mvdbeek commented Mar 25, 2026

@nekrut noticed missing input on rerun:

image

This happens when the HDCA is hidden or you're not currently in the history because the loop would group the HDCA (which have hids ...) as HDA and put it in the wrong options.

How to test the changes?

(Select all options that apply)

  • 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 26.1 milestone Mar 25, 2026
Copy link
Copy Markdown
Member

@jmchilton jmchilton left a comment

Choose a reason for hiding this comment

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

You know I hate that file but this fix is actually really legible - thank you so much! Thanks for creating abstractions for testing also - I appreciate that.

Tests for hidden/deleted HDA display in the rerun form now use real
model.HistoryDatasetAssociation instances via _new_hda(), since these
go through the isinstance check in the job_input_values loop.

The MockHistoryDatasetAssociation (which stubs find_conversion_destination)
is retained only for conversion tests that go through the dataset matcher
path and never reach the isinstance branch.
@mvdbeek mvdbeek merged commit 6a9323a into galaxyproject:release_26.0 Mar 26, 2026
53 of 56 checks passed
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in Galaxy Dev - weeklies Mar 26, 2026
@mvdbeek
Copy link
Copy Markdown
Member Author

mvdbeek commented Mar 29, 2026

Too many flaky failures, FAILED lib/galaxy_test/selenium/test_tool_form.py::TestToolForm::test_rerun_dataset_collection_element - selenium.common.exceptions.TimeoutException: Message: Timeout waiting on CSS selector [.dataset-collection-panel] to become present. was real. Fixing that now.

@ahmedhamidawan ahmedhamidawan modified the milestones: 26.1, 26.0 Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

4 participants