-
Notifications
You must be signed in to change notification settings - Fork 38
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
feat: add in support for workflow engine and version when submitting a request. Closes #181 #182
Conversation
Thanks, this addresses -to some extent- an issue we were facing when implementing a WES for Snakemake - which doesn't have a language specification (at least not a versioned one, afaik). Which means that you rather need to specify an engine version. Our workaround is to use the engine version as the Perhaps that is something that could still go into your PR though? But then it still wouldn't fully address the issue unless the specs were also to specify that Anyway, with support at least for an array of versions (even better would be a syntax like |
@uniqueg Yes I think a range of versions makes sense. As for the 'anyOf' I am open to that but not sure what that would ultimatley break. We could make 'None' option for language version for snakemake. What do you think? |
I suppose for Actually, come to think of it, I think the problem that providing a workflow engine version should require providing a workflow engine exists for the current PR as well. So perhaps it would require defining a schema |
Yes the @uniqueg expanded Workflow engine version. Take a look. |
From the text of #181: I'm not sure I like this being a required field. Whether or not it's required probably depends a lot on the specific WES environment. For example: I anticipate continuous updating our engines behind the scenes and expect that people should always get the latest version of the engine no matter what. |
@cjllanwarne I think updating to have the latest version of engines makes sense. However I see two issues:
|
The PR in its current form looks good to me, with both The only minor problems I see are:
|
Oh, one more thing: given that the requestBody:
content:
multipart/form-data:
encoding: {}
schema:
type: object
properties:
workflow_params:
type: string
workflow_type:
type: string
workflow_type_version:
type: string
tags:
type: string
workflow_engine_parameters:
type: string
workflow_url:
type: string
workflow_attachment:
type: array
items:
type: string
format: binary
description: ''
required: false And the description would have to be amended, too:
|
Update the PR for this. |
@uniqueg updated the PR to address your comments. |
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.
@vsmalladi: just small typos (or similar) I found
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.
Good work @vsmalladi , Everything looks great to me. I think this is ready to merge unless anyone else wants to weigh in here.
I'm ok with I recognize these parameters are needed for workflow definition languages that are intimately tied to their engine versions. That said, I think we should be careful with the implications for WES implementations that do not wish to expose their underlying infrastructural architecture due to either security concerns or IP restrictions. |
Update branch to move since the original PR was outdated. |
- workflow_type - workflow_type_version - workflow_url
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 looks good to me again. @wleepang the "required fields" section was made explicit clearly showing that the values added here are optional
There does not appear to be any one opposed to merging this into the spec as is, so I am considering this change accepted. Final acceptance of this feature will be done during review of the next release |
feat: add in support for workflow engine and version when submitting a request.
Closes #181