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

[22.05] Fix delayed optional data input handling #14641

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Sep 16, 2022

This fixes recording optional data input module use in the expanded tool form (and is closer to how we want to use the API).
It also fixes scheduling workflows where optional input steps are being delayed, and it allows leaving subworkflow optional data inputs disconnected.

Fixes #14611, #10899, #10450

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.

This fixes recording optional data input module use in the expanded tool
form (and is closer to how we want to use the API).

Fixes galaxyproject#14611
Tool and subworkflow steps can have replacement parameters
…ultStep to WorkflowInputStep

I think these are better names that describe what they are used for.
@bgruening
Copy link
Member

Is that still draft?

@mvdbeek
Copy link
Member Author

mvdbeek commented Sep 19, 2022

Yep, still needs tests, and I want to check out what's up with #10899 (comment). You shouldn't have to specify optional inputs in the API submission at all.

@mvdbeek mvdbeek changed the title [22.05] Submit workflow input parameters as inputs in expanded tool form [22.05] Fix delayed optional data input handling Sep 20, 2022
@mvdbeek
Copy link
Member Author

mvdbeek commented Sep 20, 2022

https://github.com/galaxyproject/galaxy/actions/runs/3089464955/jobs/4997115418#step:7:1442 should be unrelated, we might have to pin numpy to a version that works on python 3.7

@mvdbeek mvdbeek marked this pull request as ready for review September 20, 2022 10:53
@github-actions github-actions bot added this to the 22.09 milestone Sep 20, 2022
@nsoranzo
Copy link
Member

The unit tests failures seems related though?

@nsoranzo
Copy link
Member

https://github.com/galaxyproject/galaxy/actions/runs/3089464955/jobs/4997115418#step:7:1442 should be unrelated, we might have to pin numpy to a version that works on python 3.7

No, it's actually a mypy bug, whose fix will be included in the upcoming mypy 0.980.

@mvdbeek
Copy link
Member Author

mvdbeek commented Sep 20, 2022

Just waiting for the API tests to finish before pushing the unit test fix.

@mvdbeek mvdbeek force-pushed the fix_optional_data_input_submission_expanded_tool_form branch from ed5a007 to 17f3647 Compare September 21, 2022 17:32
@mvdbeek
Copy link
Member Author

mvdbeek commented Sep 21, 2022

@jmchilton this has changed a bit from when you approved it, does it still look ok to you?

@jmchilton jmchilton merged commit ace1e13 into galaxyproject:release_22.05 Sep 22, 2022
@jmchilton
Copy link
Member

Awesome thank you.

@nsoranzo nsoranzo deleted the fix_optional_data_input_submission_expanded_tool_form branch September 22, 2022 22:39
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.

None yet

4 participants