Skip to content

Commit 942fb84

Browse files
authored
Merge pull request #244 from CBIIT/EVSSIP-308
Evssip 308
2 parents 36ed823 + 8da6be6 commit 942fb84

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

server/components/elasticsearch.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ const helper_gdc = (fileJson, syns) => {
209209
});
210210
}
211211

212-
if (entry.deprecated_enum) {
213-
values = _.differenceWith(values, entry.deprecated_enum, _.isEqual);
214-
}
212+
// if (entry.deprecated_enum) {
213+
// values = _.differenceWith(values, entry.deprecated_enum, _.isEqual);
214+
// }
215215

216216
//generate p.enum
217217
if(values.length > 0){

server/data_files/GDC/model-2.6.5/_terms_enum.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28470,8 +28470,8 @@ bcell_lymphoma_unclassifiable_with_features_intermediate_between_diffuse_large_b
2847028470
term_id: C80291
2847128471
term_version: 20.05a
2847228472

28473-
? bcell_lymphoma_unclassifiable_with_features_intermediate_between_diffuse_large_bcell_lymphoma_and_classical_hodgkin_lymphoma
28474-
: common:
28473+
bcell_lymphoma_unclassifiable_with_features_intermediate_between_diffuse_large_bcell_lymphoma_and_classical_hodgkin_lymphoma:
28474+
common:
2847528475
description: >-
2847628476
A group of lymphomas displaying molecular, morphologic, immunophenotypic, and
2847728477
clinical overlap between classic Hodgkin lymphoma and diffuse large B-cell lymphoma. This

server/data_files/GDC/model-2.6.5/diagnosis.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10709,9 +10709,8 @@ properties:
1070910709
B-cell lymphoma, unclassifiable, with features intermediate between diffuse large B-cell lymphoma and Burkitt lymphoma:
1071010710
$ref:
1071110711
- "_terms_enum.yaml#/bcell_lymphoma_unclassifiable_with_features_intermediate_between_diffuse_large_bcell_lymphoma_and_burkitt_lymphoma/common"
10712-
? B-cell lymphoma, unclassifiable, with features intermediate between diffuse
10713-
large B-cell lymphoma and classical Hodgkin lymphoma
10714-
: $ref:
10712+
B-cell lymphoma, unclassifiable, with features intermediate between diffuse large B-cell lymphoma and classical Hodgkin lymphoma:
10713+
$ref:
1071510714
- "_terms_enum.yaml#/bcell_lymphoma_unclassifiable_with_features_intermediate_between_diffuse_large_bcell_lymphoma_and_classical_hodgkin_lymphoma/common"
1071610715
Balloon cell melanoma:
1071710716
$ref:

server/data_files/GDC/model-2.6.5/molecular_test.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3761,8 +3761,7 @@ properties:
37613761
$ref:
37623762
- "_terms.yaml#/locus/common"
37633763
type: string
3764-
pattern: "^(AC_|NC_|NG_|NT_|NW_|NZ_b|NM_|NR_|XM_c|XR_c|AP_|NP_|YP_c|XP_c|WP_)[0-9]+(\\\
3765-
.(0|[1-9][0-9]{0,3}))?$"
3764+
pattern: "^(AC_|NC_|NG_|NT_|NW_|NZ_b|NM_|NR_|XM_c|XR_c|AP_|NP_|YP_c|XP_c|WP_)[0-9]+(\\.(0|[1-9][0-9]{0,3}))?$"
37663765

37673766
mismatch_repair_mutation:
37683767
$ref:

server/lib/Property.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ const Property = class {
4545
if (schema.hasOwnProperty('enum')) {
4646
this._type = 'enum';
4747
this._values = schema.enum;
48+
if (schema.deprecated_enum) {
49+
this._values = schema.enum.filter(value => !schema.deprecated_enum.includes(value));
50+
}
4851
} else if (schema.hasOwnProperty('oneOf')) {
4952
const types = [];
5053

0 commit comments

Comments
 (0)