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

Always return oncokb proxy url even the token is not present #3205

Merged
merged 1 commit into from
May 7, 2020
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,6 @@ export class ServerConfigHelpers {
return config.serverConfig.sessionServiceEnabled;
}

static oncoKbIsEnabledWithoutToken() {
return (
config.serverConfig.show_oncokb &&
!config.serverConfig.oncoKbTokenDefined
);
}

static getUserEmailAddress(): string | undefined {
return config.serverConfig.user_email_address &&
config.serverConfig.user_email_address !== 'anonymousUser'
Expand Down
6 changes: 1 addition & 5 deletions src/shared/api/urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,7 @@ export function getProxyUrlIfNecessary(url: any) {
}

export function getOncoKbApiUrl() {
if (AppConfig.serverConfig.oncoKbTokenDefined) {
return buildCBioPortalAPIUrl(`proxy/oncokb`);
} else {
return undefined;
}
return buildCBioPortalAPIUrl(`proxy/oncokb`);
}

export function getGenomeNexusApiUrl() {
Expand Down