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

Add test and doc showing how dynamic selects are used #16885

Merged
merged 3 commits into from
Mar 5, 2024

Conversation

bernt-matthias
Copy link
Contributor

@bernt-matthias bernt-matthias commented Oct 19, 2023

I struggled to get dynamic selects with multiple="true" to work. The problem is that when iterating over the select in the command section one can not access the fields property (e.g., .fields.path).

Q: Do we want consistent access to select options for multiple="true" and multiple="false". A potential problem is that we can access only the value of one column in the true case (whereas we can access all via fields in the false case).

Docs would also be nice. Where should I put it? https://docs.galaxyproject.org/en/master/dev/schema.html#tool-inputs-param-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.

@bernt-matthias bernt-matthias changed the title Add test showing how dynamic selects are used Add test and doc showing how dynamic selects are used Oct 19, 2023
@github-actions github-actions bot added this to the 23.2 milestone Oct 19, 2023
bernt-matthias added a commit to bernt-matthias/tools-iuc that referenced this pull request Oct 20, 2023
when iterating over dynamic selects one can not access
the fields property, but name and path column need to
be set manually for the select options, xref galaxyproject/galaxy#16885

this never worked since there is obviously no element_identifier
attribute even if `.fields.path` would exist.
bernt-matthias added a commit to bernt-matthias/tools-iuc that referenced this pull request Oct 20, 2023
when iterating over dynamic selects one can not access
the fields property, but name and path column need to
be set manually for the select options, xref galaxyproject/galaxy#16885

this never worked since there is obviously no element_identifier
attribute even if `.fields.path` would exist.
bgruening pushed a commit to galaxyproject/tools-iuc that referenced this pull request Nov 12, 2023
when iterating over dynamic selects one can not access
the fields property, but name and path column need to
be set manually for the select options, xref galaxyproject/galaxy#16885

this never worked since there is obviously no element_identifier
attribute even if `.fields.path` would exist.
@mvdbeek mvdbeek modified the milestones: 23.2, 24.0 Dec 19, 2023
@mvdbeek mvdbeek merged commit eeb2d04 into galaxyproject:dev Mar 5, 2024
42 of 47 checks passed
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

2 participants