Skip to content

Commit

Permalink
add workflow not active message
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Dec 13, 2023
1 parent e07d915 commit 48cc916
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion qiita_pet/handlers/software.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def _default_parameters_parsing(node):

workflows.append(
{'name': w.name, 'id': w.id, 'data_types': w.data_type,
'description': w.description,
'description': w.description, 'active': w.active,
'parameters_sample': wparams['sample'],
'parameters_prep': wparams['prep'],
'nodes': nodes, 'edges': edges})
Expand Down
5 changes: 5 additions & 0 deletions qiita_pet/templates/workflows.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ <h5>Hover on the spheres to get more information</h5>
<div class="row">
<div class="col-sm-7" style="background-color: #DCDCDC; height: 650px" id="workflow_{{i}}"></div>
<div class="col-sm-5">
{% if not w['active'] %}
<h3 style="color:red">
~~ NOT ACTIVE ~~
</h3>
{% end %}
<h4>
Application: {{', '.join(w['data_types'])}} ->
{% if w['parameters_sample'] or w['parameters_prep'] %}
Expand Down
6 changes: 3 additions & 3 deletions qiita_pet/test/test_software.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def test_retrive_workflows(self):
{'name': 'FASTQ upstream workflow', 'id': 1, 'data_types': ['16S', '18S'],
'description': 'This accepts html <a href="https://qiita.ucsd.edu">Qiita!'
'</a><br/><br/><b>BYE!</b>',
'parameters_sample': {}, 'parameters_prep': {},
'active': True, 'parameters_sample': {}, 'parameters_prep': {},
'nodes': [
['params_1', 1, 'Split libraries FASTQ', 'Defaults', {
'max_bad_run_length': '3', 'min_per_read_length_fraction': '0.75',
Expand All @@ -199,7 +199,7 @@ def test_retrive_workflows(self):
['params_2', 'output_params_2_OTU table | BIOM']]},
{'name': 'FASTA upstream workflow', 'id': 2, 'data_types': ['18S'],
'description': 'This is another description',
'parameters_sample': {}, 'parameters_prep': {},
'active': False, 'parameters_sample': {}, 'parameters_prep': {},
'nodes': [
['params_3', 2, 'Split libraries', 'Defaults with Golay 12 barcodes', {
'min_seq_len': '200', 'max_seq_len': '1000',
Expand All @@ -226,7 +226,7 @@ def test_retrive_workflows(self):
['params_4', 'output_params_4_OTU table | BIOM']]},
{'name': 'Per sample FASTQ upstream workflow', 'id': 3,
'data_types': ['ITS'], 'description': None,
'parameters_sample': {}, 'parameters_prep': {},
'active': True, 'parameters_sample': {}, 'parameters_prep': {},
'nodes': [
['params_5', 1, 'Split libraries FASTQ', 'per sample FASTQ defaults', {
'max_bad_run_length': '3', 'min_per_read_length_fraction': '0.75',
Expand Down

0 comments on commit 48cc916

Please sign in to comment.