-
Notifications
You must be signed in to change notification settings - Fork 233
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
Retire use of api-legacy endpoints #3296
Retire use of api-legacy endpoints #3296
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like api-legacy
is used even in MatchMinerAPI.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@n1zea144 thanks for the pr.
- I'm a bit confused the new proxy api route. Shouldn't it be
/api/proxy
? - Like Karthik mentioned, could you modify the MatchMinerAPI.ts as well?
Thanks.
src/shared/api/urls.ts
Outdated
@@ -242,9 +242,9 @@ export function getSessionUrl() { | |||
// TODO: remove this after switch to AWS. This is a hack to use proxy | |||
// session-service from non apiRoot. We'll have to come up with a better | |||
// solution for auth portals | |||
return buildCBioPortalPageUrl('api-legacy/proxy/session'); | |||
return buildCBioPortalPageUrl('proxy/session'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be api/proxy/session
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zhx828 Maybe you are correct - I thought the buildCBioPortalPageUrl() handles adding the api root. Does it not (I'm not proficient in ts)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wait, I just realized I was confusing buildCBioPortalPageUrl with buildCBioPortalAPIUrl. They seem to have different behavior yet both calls pass different arguments. In any event, I'll update to app the "api/" back.
4018cb7
to
8d6649c
Compare
@kalletlak @zhx828 I've added MatchMinerAPI.ts updates to this PR. |
8d6649c
to
d6971e8
Compare
d6971e8
to
a9b2074
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Looks like prettier is failing, could you try to update code/changes by running prettier command locally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@n1zea144 looks like a lot of e2e failures probably related. gonna run again and can take a look if it turns out to be true |
@zhx828 i excluded it from this release from now, but can include in the next one |
Yeah, no rush to get this into this release - thanks everyone! |
Retires the use of the api-legacy endpoint. Should be deployed in coordination with backend PR #7653.