Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/kbdev 1154 update the display name format loaded by onco tree and disease ontology #158

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading