Skip to content

Commit

Permalink
Merge pull request #297 from Clinical-Genomics/update_panel_name_in_r…
Browse files Browse the repository at this point in the history
…eport

Fix updating gene panel name displayed on report page
  • Loading branch information
northwestwitch authored May 15, 2024
2 parents 4e659bb + 9b675fb commit b05b08d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## [unreleased]
### Fixed
- Position of `Show genes` checkbox on report page
- Updating gene panel name using the web form on report page

## [1.6]
### Added
Expand Down
5 changes: 4 additions & 1 deletion src/chanjo2/meta/handle_report_contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ def get_report_data(
"default_level": query.default_level,
"interval_type": query.interval_type.value,
"case_name": query.case_display_name,
"hgnc_gene_ids": [gene.hgnc_id for gene in genes],
"hgnc_gene_ids": [gene.hgnc_id for gene in genes]
or query.hgnc_gene_ids
or query.hgnc_gene_symbols
or query.ensembl_gene_ids,
"build": query.build.value,
"completeness_thresholds": query.completeness_thresholds,
"samples": [_serialize_sample(sample) for sample in query.samples],
Expand Down
2 changes: 1 addition & 1 deletion src/chanjo2/templates/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h2 class="accordion-header" id="flush-headingOne">

<div class="col-6">
<label class="form-label">Gene panel name to display</label>
<input class="form-control" id="panel_name" type="text" placeholder="Skeletal dysplasia 3.2" value="{{ extras.panel_name or '' }}">
<input class="form-control" id="panel_name" name="panel_name" type="text" placeholder="Skeletal dysplasia 3.2" value="{{ extras.panel_name or '' }}">
</div>
</div>
</div>
Expand Down

0 comments on commit b05b08d

Please sign in to comment.