-
Notifications
You must be signed in to change notification settings - Fork 102
TASK-7610 - Extend Workflows data model #2631
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
base: develop
Are you sure you want to change the base?
Conversation
|
Task linked: TASK-7610 Extend Workflows data model |
opencga-analysis/src/main/java/org/opencb/opencga/analysis/tools/OpenCgaTool.java
Outdated
Show resolved
Hide resolved
| @DataField(id = "manager", description = FieldConstants.WORKFLOW_MANAGER_DESCRIPTION) | ||
| private WorkflowSystem manager; | ||
| @DataField(id = "scope", description = FieldConstants.EXTERNAL_TOOL_SCOPE_DESCRIPTION) | ||
| private ExternalToolScope scope; |
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.
Classic tools already have a "scope". This name is misleading, as it has a totally different meaning.
I don't even know what this scope is for 🤷 (the DataField content doesn't help either)
It's some sort of tool classification by purpose?
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.
There's a data field explaining what that scope is.
...cga-core/src/main/java/org/opencb/opencga/core/models/externalTool/ExternalToolVariable.java
Outdated
Show resolved
Hide resolved
...cga-core/src/main/java/org/opencb/opencga/core/models/externalTool/ExternalToolVariable.java
Outdated
Show resolved
Hide resolved
| public static final String EXTERNAL_TOOL_TYPE_DESCRIPTION = "External tool type. Valid values: TOOL, VARIANT_WALKER or WORKFLOW."; | ||
| public static final String EXTERNAL_TOOL_SCOPE_DESCRIPTION = "External tool scope. Valid values: SECONDARY_ANALYSIS, RESEARCH_ANALYSIS," | ||
| + " CLINICAL_INTERPRETATION_ANALYSIS or OTHER."; | ||
| public static final String EXTERNAL_TOOL_DRAFT_DESCRIPTION = "Flag indicating whether the external tool is a draft or not."; |
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.
Ok, cool, but what are the implications of a draft tool? Is this just informative, or has an actual meaning internally?
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.
Tools that are not intended to be published/used yet are marked as "draft", but that's up to you whether you want to trust that or not. We are not restricting anything
opencga-analysis/src/main/java/org/opencb/opencga/analysis/customTool/CustomToolExecutor.java
Show resolved
Hide resolved
opencga-catalog/src/main/java/org/opencb/opencga/catalog/managers/ExternalToolManager.java
Show resolved
Hide resolved
| protected String getStudyFqn() throws CatalogException { | ||
| String study = StringUtils.isNotEmpty(this.study) ? this.study : getParams().getString(ParamConstants.STUDY_PARAM); | ||
| if (StringUtils.isEmpty(study)) { | ||
| return ""; |
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.
if empty, would not call catalog to see if there is any default study? Shouldn't fail if empty? This is different behaviour than the "OpenCgaToolScopeStudy"
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 can't think of a case where that will be empty, but if it is, calls to anything in OpenCGA will use an empty study and should return something either way if there's only one study
...cga-analysis/src/main/java/org/opencb/opencga/analysis/variant/operations/OperationTool.java
Show resolved
Hide resolved
| @Migration(id = "remove_status_name", description = "Remove status name #TASK-5964", version = "3.2.0", | ||
| language = Migration.MigrationLanguage.JAVA, domain = Migration.MigrationDomain.CATALOG, date = 20240612) | ||
| language = Migration.MigrationLanguage.JAVA, domain = Migration.MigrationDomain.CATALOG, date = 20240612, | ||
| deprecatedSince = "4.0.0") |
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.
hummm... actually, deprecatedSince 5.0.0, right?
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.
There are a few other migrations with the wrong deprecatiedSince
No description provided.