-
Notifications
You must be signed in to change notification settings - Fork 1k
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 user defined YAML tools #19434
Draft
mvdbeek
wants to merge
68
commits into
galaxyproject:dev
Choose a base branch
from
mvdbeek:user_defined_tools
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Add user defined YAML tools #19434
+11,102
−885
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The primary benefit is that the command section does not have access the app or any dangling reference to the database connection or any other secrets. There are two flavors here, one uses base_command and arguments, and allows building up an (escaped) argv list, the other is a shortcut for writing shell scripts and feels maybe a bit more like writing a very simple cheetah section. base_command: ```yml name: base_command tool class: GalaxyTool version: 1.0.0 base_command: cat arguments: - $(inputs.input.path) - '>' - output.fastq inputs: - type: data name: input outputs: output: type: data from_work_dir: output.fastq name: output ``` shell_command style: ```yml name: shell_command tool class: GalaxyTool version: 1.0.0 shell_command: cat '$(inputs.input.path)' > output.fastq inputs: - type: data name: input outputs: output: type: data from_work_dir: output.fastq name: output ```
Will probably need this later for efficiency and ignoring `$()` outside of shell_command.
Simply re-use models by index and set values. It's currently a high-water mark situation, and there will be a warning once 200 models (i.e. 200 embedded fragments) are created, but that seems pretty unlikely.
github-actions
bot
added
area/testing
area/API
area/jobs
area/workflows
area/database
Galaxy's database or data access layer
area/tool-framework
area/tool-dependencies
area/testing/api
area/client
labels
Jan 21, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/API
area/client
area/database
Galaxy's database or data access layer
area/jobs
area/testing/api
area/testing
area/tool-dependencies
area/tool-framework
area/workflows
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This work enhances the existing YAML tool format to bring it close to feature parity with XML tools, and strips inherently unsafe elements, which should eventually allow a subset of trusted users to bring their own tools.
I'll follow up with a more extensive description, but here's a screenshot of the embedded tool editor.
How to test the changes?
(Select all options that apply)
License