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

Enhancements to the presto router ui #24411

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

auden-woolfson
Copy link
Contributor

@auden-woolfson auden-woolfson commented Jan 21, 2025

Description

Login/logout capabilities and other enhancements added to the presto-router. Brought from IBM internal router changes

== RELEASE NOTES ==

General Changes
* Enhance presto router UI and add login/logout capabilities

Auden Woolfson and others added 2 commits January 21, 2025 14:48
@prestodb-ci prestodb-ci added the from:IBM PR from IBM label Jan 21, 2025
Copy link

linux-foundation-easycla bot commented Jan 21, 2025

CLA Missing ID CLA Not Signed

@prestodb-ci prestodb-ci requested review from a team, zuyu and BryanCutler and removed request for a team January 21, 2025 23:53
@auden-woolfson auden-woolfson marked this pull request as ready for review January 28, 2025 19:32
@auden-woolfson auden-woolfson requested a review from a team as a code owner January 28, 2025 19:32
@ethanyzhang
Copy link
Contributor

Hi @yhwang @unidevel can you help look at the ui part of this PR? Thx!

@ethanyzhang
Copy link
Contributor

@auden-woolfson Is there any co-author you need to add to this?

@auden-woolfson
Copy link
Contributor Author

@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

Copy link
Member

@yhwang yhwang left a 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) {
Copy link
Member

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?

Copy link
Contributor Author

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>
Copy link
Member

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.

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants