Skip to content

Commit

Permalink
Merge pull request #246 from CBIIT/EVSSIP-317
Browse files Browse the repository at this point in the history
Evssip 317
  • Loading branch information
fmanuelos authored Sep 5, 2023
2 parents a4c4428 + 9f31129 commit 4c0ca75
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 20 deletions.
16 changes: 0 additions & 16 deletions server/components/elasticsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,6 @@ const helper_gdc = (fileJson, syns) => {
values_ncit_mapping[v.toLowerCase()] = [];
});

/*
for(let key in entry.enumDef){
let obj = entry.enumDef[key];
let v = key.toLowerCase();
if(v in values_ncit_mapping){
if(obj && obj.termDef && obj.termDef.term_id && values_ncit_mapping[v].indexOf(obj.termDef.term_id.trim()) == -1){
values_ncit_mapping[v].push(obj.termDef.term_id.trim());
}
}
}
*/

// 2. work on conceptCode to further combind the ncit code
// depracted as data mappings in conceptCode.js file have already been included in gdc_values.js file

Expand Down Expand Up @@ -209,10 +197,6 @@ const helper_gdc = (fileJson, syns) => {
});
}

// if (entry.deprecated_enum) {
// values = _.differenceWith(values, entry.deprecated_enum, _.isEqual);
// }

//generate p.enum
if(values.length > 0){
p.enum = [];
Expand Down
2 changes: 1 addition & 1 deletion server/data_files/GDC/gdc_props.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion server/data_files/GDC/gdc_values.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion server/data_files/GDC/ncit_details.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions server/lib/Property.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const Property = class {
if (schema.deprecated_enum) {
this._values = schema.enum.filter(value => !schema.deprecated_enum.includes(value));
}
this._values = this._values.map(item => String(item).replace(/\n/g, ' '));
} else if (schema.hasOwnProperty('oneOf')) {
const types = [];

Expand Down
2 changes: 1 addition & 1 deletion server/service/search/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const fs = require("fs");
const path = require("path");
const shared = require("./shared");
// const git = require('nodegit');
const Excel = require("exceljs");
// const Excel = require("exceljs");
const export_excel = require('node-excel-export');
const dataFilesPath = path.join(__dirname, "..", "..", "data_files");
var syns = {};
Expand Down

0 comments on commit 4c0ca75

Please sign in to comment.