Skip to content

Commit

Permalink
Fix #2547 (#2548)
Browse files Browse the repository at this point in the history
* Assume Null track is rare disease track in institute cases

* fix that works

* rephrase CHANGELOG

* Do not save null tracks
  • Loading branch information
northwestwitch authored Apr 16, 2021
1 parent 9e6b21f commit dae7284
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ About changelog [here](https://keepachangelog.com/en/1.0.0/)
## [x.x.x]
### Fixed
- iSort lint check only
- Institute cases page crashing when a case has track:Null

## [4.32]
### Added
Expand Down
2 changes: 1 addition & 1 deletion scout/adapter/mongo/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ def update_case(self, case_obj, keep_date=False):
"smn_tsv": case_obj.get("smn_tsv"),
"status": case_obj.get("status"),
"sv_rank_model_version": case_obj.get("sv_rank_model_version"),
"track": case_obj.get("track"),
"track": case_obj.get("track", "rare"),
"updated_at": updated_at,
"variants_stats": case_obj.get("variants_stats"),
"vcf_files": case_obj.get("vcf_files"),
Expand Down
3 changes: 2 additions & 1 deletion scout/server/blueprints/institutes/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@

from .forms import CaseFilterForm

TRACKS = {"rare": "Rare Disease", "cancer": "Cancer"}
# Do not assume all cases have a valid track set
TRACKS = {None: "Rare Disease", "rare": "Rare Disease", "cancer": "Cancer"}


def institute(store, institute_id):
Expand Down

0 comments on commit dae7284

Please sign in to comment.