From 93a60f68b718db6b186c2108f593ee0786432dbd Mon Sep 17 00:00:00 2001 From: Chiara Rasi Date: Tue, 7 May 2024 10:10:09 +0200 Subject: [PATCH 1/2] Fix updating gene panel displayed on report page --- CHANGELOG.md | 3 +++ src/chanjo2/meta/handle_report_contents.py | 5 ++++- src/chanjo2/templates/report.html | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 359ae07a..541cf682 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### Fixed +- Updating gene panel name using the web form on report page + ## [1.6] ### Added - Coverage report and genes coverage overview endpoints now accept also requests with application/x-www-form-urlencoded data diff --git a/src/chanjo2/meta/handle_report_contents.py b/src/chanjo2/meta/handle_report_contents.py index 445f1728..9463685d 100644 --- a/src/chanjo2/meta/handle_report_contents.py +++ b/src/chanjo2/meta/handle_report_contents.py @@ -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], diff --git a/src/chanjo2/templates/report.html b/src/chanjo2/templates/report.html index 54baf907..8ecbd274 100644 --- a/src/chanjo2/templates/report.html +++ b/src/chanjo2/templates/report.html @@ -41,7 +41,7 @@

- +
From 74f05ddfad685ce704f09c7e70f7e51929571683 Mon Sep 17 00:00:00 2001 From: Chiara Rasi Date: Tue, 7 May 2024 10:23:21 +0200 Subject: [PATCH 2/2] Fixed changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 541cf682..c29a593c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +## [unreleased] ### Fixed - Updating gene panel name using the web form on report page