-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Enhancements to the presto router ui #24411
base: master
Are you sure you want to change the base?
Conversation
formatting formatting imports
|
@auden-woolfson Is there any co-author you need to add to this? |
@ethanyzhang all of these changes were originally committed by Saran and I. I can add him as an author to the commit before merge |
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.
UI changes look good to me. However, I left some questions.
@@ -45,7 +46,14 @@ export class PageTitle extends React.Component<Props, State> { | |||
refreshLoop() { | |||
clearTimeout(this.timeoutId); | |||
fetch("/v1/info") | |||
.then(response => response.json()) | |||
.then(response => { | |||
if (response.status === 401) { |
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.
Can you explain the logic of handling the 401 response code here?
Can this be done by sending a different URL in the fetch above?
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.
This handles the case of expired Oauth2 tokens, since we are not adding the Oauth2 functionality yet I will remove this.
@@ -0,0 +1,58 @@ | |||
<!DOCTYPE html> |
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.
Where is this file used? Any corresponding server-side code? I guess on the server-side, the session needs to be cleaned.
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.
Password authentication is added in a separate PR, can move this into that one
Description
Login/logout capabilities and other enhancements added to the presto-router. Brought from IBM internal router changes