-
Notifications
You must be signed in to change notification settings - Fork 3
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
Graphql: Submit Workflow Execution #838
base: main
Are you sure you want to change the base?
Conversation
eb52de5
to
815d739
Compare
0230b2e
to
6f79351
Compare
ce227e4
to
abd7c59
Compare
abd7c59
to
f463a13
Compare
3232e31
to
de21328
Compare
de21328
to
ca2516f
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and works as described!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried resetting the database on this branch but it failed due to the new validation of samplesheet_params
can you please update the seed_workflow_executions
method in db/seeds.rb
so that this error no longer occurs.
Note: I only figured out that was the case after changing WorkflowExecution.create
to WorkflowExecution.create!
which causes an exception to be raised when the record is unable to be saved. Without that it was failing on line 197 in db/seeds.rb
as it could not create the attachment without attachable_id
Fixed in 02e498e |
02e498e
to
ca3d284
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good. Just a few comments and could you review the rubocop warnings present in the Files changed
tab.
08fa191
to
7c12f74
Compare
This comment has been minimized.
This comment has been minimized.
7c12f74
to
e7fff0f
Compare
Code Metrics Report
Code coverage of files in pull request scope (96.9%)Reported by octocov |
While testing this PR out, I was able to use this for the samplesWorkflowExecutionAttributes JSON for the mutation which worked but it shouldn't have
Looks like we need to add validation to make sure that the The reason the above shouldn't have worked is because the Steps to recreate: Seed db if you already don't have it seeded
set the project_id to global id of created project above In the hash for Run the mutation and it should succeed in launching the workflow execution. |
What does this PR do and why?
Describe in detail what your merge request does and why.
SubmitWorkflowExecution
which submits a workflow execution / pipeline.WorkflowExecution
objects, which ensures samplesheet params attachments are formatted correctly.Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other pull requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Get some data to use in a submission
Use the data returned from the previous step to populate the following submission mutation
PR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.