Skip to content

Commit

Permalink
Merge pull request #158 from bcgsc/Bugfix/KBDEV-1154-Update-the-displ…
Browse files Browse the repository at this point in the history
…ayName-format-loaded-by-OncoTree-and-Disease-Ontology

Bugfix/kbdev 1154 update the display name format loaded by onco tree and disease ontology
  • Loading branch information
sshugsc authored Jun 18, 2024
2 parents 6ccd55b + 291b8ba commit 786b9d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/diseaseOntology/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ const uploadFile = async ({
alias: false,
deprecated,
description,
displayName: `${name} [${sourceId.toUpperCase()}]`,
name,
source,
sourceId,
Expand Down Expand Up @@ -286,6 +287,7 @@ const uploadFile = async ({
for (const alias of aliases) {
const content = {
alias: true,
displayName: `${alias} [${record.sourceId.toUpperCase()}]`,
name: alias,
source,
sourceId: record.sourceId,
Expand Down Expand Up @@ -331,6 +333,7 @@ const uploadFile = async ({
for (const alternateId of hasDeprecated) {
const content = {
deprecated: true,
displayName: `${record.name} [${alternateId.toUpperCase()}]`,
name: record.name,
source,
sourceId: alternateId,
Expand Down
1 change: 1 addition & 0 deletions src/oncotree/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ const upload = async (opt) => {
// upload the results
for (const record of records) {
const body = {
displayName: `${record.name} [${record.sourceId.toUpperCase()}]`,
name: record.name,
source: rid(source),
sourceId: record.sourceId,
Expand Down

0 comments on commit 786b9d3

Please sign in to comment.