Skip to content

[26.0] Fix workflow rerun for unset optional data inputs#22664

Merged
mvdbeek merged 2 commits into
galaxyproject:release_26.0from
mvdbeek:fix-rerun-validation
May 18, 2026
Merged

[26.0] Fix workflow rerun for unset optional data inputs#22664
mvdbeek merged 2 commits into
galaxyproject:release_26.0from
mvdbeek:fix-rerun-validation

Conversation

@mvdbeek
Copy link
Copy Markdown
Member

@mvdbeek mvdbeek commented May 8, 2026

Fixes
image

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.

Re-running a workflow that has an optional `data_input` /
`data_collection_input` step left empty on the original run failed with a
pydantic `DataOrCollectionRequest` ValidationError ("'values' not
permitted" against `DataRequestHdca`/`FileRequestUri`/
`DataRequestCollectionUri`). `WorkflowInvocationRequestModel.inputs`
returns `null` for unset optional inputs; WorkflowRunFormSimple.vue
wrapped that as `{values: [null]}` regardless, and the resulting
`null` entry crashed `FormData.vue`'s `onMounted` hook on
`"src" in null`. Because the mounted hook never completed, the bad
wrapper survived in formData and was sent to the server.

Filter `null`/`undefined` entries out of the rerun-hydrated array, and
skip the assignment entirely when no real values remain so the form
falls back to its default for the optional input. Sibling fix to galaxyproject#22601.
@github-project-automation github-project-automation Bot moved this to Needs Review in Galaxy Dev - weeklies May 8, 2026
@mvdbeek mvdbeek changed the base branch from dev to release_26.0 May 8, 2026 20:00
@mvdbeek mvdbeek changed the title Fix workflow rerun for unset optional data inputs [26.0] Fix workflow rerun for unset optional data inputs May 8, 2026
@github-actions github-actions Bot added this to the 26.1 milestone May 8, 2026
@jmchilton
Copy link
Copy Markdown
Member

I approved this already but it looks like the failing tests are related.

@mvdbeek mvdbeek force-pushed the fix-rerun-validation branch from 364b3bc to 0fbea9e Compare May 18, 2026 14:59
Selenium regression for the WorkflowRunFormSimple data-input rerun
hydration crash fixed in the prior commit. Runs
`WORKFLOW_OPTIONAL_TRUE_INPUT_DATA` (a single optional `data_input`)
without selecting a dataset, then reruns without changes and asserts a
new ok output appears.

Pre-fix, the rerun submission raised a "Workflow submission failed:
... 'values' not permitted ..." toast because the rerun-hydrated
wrapper contained `[null]` (left over from the optional input the
user didn't fill on the original run) and `FormData.vue`'s mounted
hook crashed on `"src" in null` before it could normalize the value.
Originally reported on a "1 or 2 haplotypes" workflow where users
left the second-haplotype input empty.
@mvdbeek mvdbeek force-pushed the fix-rerun-validation branch 2 times, most recently from 92a6b3e to 394aac4 Compare May 18, 2026 16:16
@mvdbeek mvdbeek merged commit 9d3f8ce into galaxyproject:release_26.0 May 18, 2026
35 checks passed
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in Galaxy Dev - weeklies May 18, 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.

2 participants