From 7ffa79ddd5fef487bb337c32c0ed1e2dc9bd97e1 Mon Sep 17 00:00:00 2001 From: Susanna Kiwala Date: Thu, 12 Sep 2019 08:35:23 -0500 Subject: [PATCH 1/2] Rename variant_origin labels according to issue #877 --- app/const/constants.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/const/constants.rb b/app/const/constants.rb index 20f87892..9f32fe27 100644 --- a/app/const/constants.rb +++ b/app/const/constants.rb @@ -17,7 +17,7 @@ module Constants EVIDENCE_DIRECTIONS = [:Supports, 'Does Not Support', 'N/A'] - VARIANT_ORIGINS = ['Somatic Mutation', 'Germline Mutation', 'Germline Polymorphism', 'Unknown', 'N/A', 'Germline or Somatic'] + VARIANT_ORIGINS = ['Somatic', 'Rare Germline', 'Common Germline', 'Unknown', 'N/A', 'Germline or Somatic'] CLINICAL_SIGNIFICANCES = [ 'Sensitivity/Response', From c1bcf4d3d4b66125287b542da655be8a5cf46e99 Mon Sep 17 00:00:00 2001 From: Susanna Kiwala Date: Thu, 12 Sep 2019 10:26:56 -0500 Subject: [PATCH 2/2] Fix tests --- spec/controllers/datatables_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/controllers/datatables_spec.rb b/spec/controllers/datatables_spec.rb index 2c3b1357..46b48bb1 100644 --- a/spec/controllers/datatables_spec.rb +++ b/spec/controllers/datatables_spec.rb @@ -56,10 +56,10 @@ end it 'should filter on variant_origin' do - evidence_item_A = Fabricate(:evidence_item, status: 'accepted', variant_origin: 'Somatic Mutation') - evidence_item_B = Fabricate(:evidence_item, status: 'accepted', variant_origin: 'Germline Mutation') + evidence_item_A = Fabricate(:evidence_item, status: 'accepted', variant_origin: 'Somatic') + evidence_item_B = Fabricate(:evidence_item, status: 'accepted', variant_origin: 'Rare Germline') - get :datatable, params: { filter: {variant_origin: 'Somatic Mutation'} } + get :datatable, params: { filter: {variant_origin: 'Somatic'} } result = JSON.parse(response.body) expect(result['result'].length).to eq 1