Gene names are editable after save&view+edit even if the gene has associated variants, which may cause the variants to "disappear"

Description

Steps to reproduce:

  • Create a new patient, go to the "Genotype information" section

  • Enter a gene

  • Add a variant. Notice how the gene name becomes "locked" (can no longer be edited)

  • Save & view

  • Edit again

Result: the gene name is now editable, and will remain that way until another variant is added. If the user changes the gene name, all variants that were linked to the previous gene name will "disappear" upon saving the document (while the data is still there, they are not shown in the UI since theu are thought to belong in a different gene).

In the absence of a mechanism to propagate the new gene name to the existing variants, the expected behavior would be to not allow the gene name to be edited when there are already variants associated. This would be consistent with the behavior displayed the first time the user enters the gene and its variants.

Environment

None

Activity

Show:
Marta Girdea
November 8, 2016, 9:39 PM

Closed with a quick fix. Code to be improved as part of PT-2928.

Assignee

Veronika Koltunova

Reporter

Marta Girdea

Labels

None

External issue ID

None

Sprint

None

Fix versions

Affects versions

Priority

Medium
Configure