IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Переглянути джерело

Started working on using default values in workflows.

master
Stanislaw Adaszewski 4 роки тому
джерело
коміт
9268bcba84
1 змінених файлів з 13 додано та 6 видалено
  1. +13
    -6
      frontend/src/js/page/wb-launch-workflow-page.js

+ 13
- 6
frontend/src/js/page/wb-launch-workflow-page.js Переглянути файл

@@ -113,12 +113,19 @@ class WBLaunchWorkflowPage extends Component {
let prom = makeArvadosRequest(arvHost, arvToken,
'/arvados/v1/workflows/' + workflowUuid);
prom = prom.then(xhr => this.setState({
'workflow': xhr.response,
'workflowDefinition': parseDefinition(xhr.response.definition),
'defaultProcessName': xhr.response.name + ' ' + (new Date().toISOString()),
'defaultProcessDescription': xhr.response.description
}));
prom = prom.then(xhr => {
const def = parseDefinition(xhr.response.definition);
const inputs = {};
const main = def['$graph'].find(a => (a.id === '#main'));
main.inputs.map(a => (inputs[a.id] = JSON.stringify(a.default)));
this.setState({
'workflow': xhr.response,
'workflowDefinition': def,
'defaultProcessName': xhr.response.name + ' ' + (new Date().toISOString()),
'defaultProcessDescription': xhr.response.description,
inputs
});
});
}
renderInput(inputSpec) {


Завантаження…
Відмінити
Зберегти