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

[Feature Request]: Improve Notebook Logout Experience #892

Closed
andrewballantyne opened this issue Jan 16, 2023 · 6 comments
Closed

[Feature Request]: Improve Notebook Logout Experience #892

andrewballantyne opened this issue Jan 16, 2023 · 6 comments
Labels
feature/ds-projects Data Science Projects feature (formerly Data Science Groupings - DSG) feature/notebook-controller KubeFlow NoteBook Controller (KFNBC) Feature kind/tech-debt A technical debt item for the development team. E.g. Refactors / Tests / etc migrated priority/normal An issue with the product; fix when possible

Comments

@andrewballantyne
Copy link
Member

Feature description

When logging out of the Jupyter Notebook it redirects to our Dashboard -- which uses a window.location redirect to the OAuth container for that Notebook -- which then redirects back to us at a more specific location (either the control panel for the jupyter tile or the project the notebook belongs to).

What we should do is look to see if we can make a direct get call or something using fetch or axios or something -- when we get a response, we can react-router redirect and keep the flow a lot cleaner.

It's a messy back and forth right now.

Describe alternatives you've considered

Possible we spawn a new tab to do this? Not sure this is any more ideal -- and browsers could probably mute this action so we might be out of luck if the primary goal fails.

Anything else?

No response

@andrewballantyne andrewballantyne added kind/enhancement New functionality request (existing augments or new additions) untriaged Indicates the newly create issue has not been triaged yet feature/notebook-controller KubeFlow NoteBook Controller (KFNBC) Feature priority/normal An issue with the product; fix when possible feature/ds-projects Data Science Projects feature (formerly Data Science Groupings - DSG) and removed untriaged Indicates the newly create issue has not been triaged yet labels Jan 16, 2023
@andrewballantyne andrewballantyne added kind/tech-debt A technical debt item for the development team. E.g. Refactors / Tests / etc and removed kind/enhancement New functionality request (existing augments or new additions) labels May 29, 2023
@andrewballantyne andrewballantyne changed the title [Feature Request]: Improve Logout Experience [Feature Request]: Improve Notebook Logout Experience Sep 26, 2023
@andrewballantyne
Copy link
Member Author

@DaoDaoNoCode Would you be able to test this and see if you solved this with your recent changes to logout in DS Projects. Test both Jupyter Tile & DS Projects Workbench logout.

@andrewballantyne andrewballantyne added the needs-info Further information is requested from the reporter or from another source label Sep 26, 2023
@DaoDaoNoCode
Copy link
Member

Test results with the changes in #1792

Data science project:
No change. When the logout button is hit, it will go to ${dashboard_origin}/notebook/${project_name}/${notebook_name}/logout page, where we create a redirect component to help replace the URL with the Jupyter Notebook URL and add /oauth/sign_out to really sign out the oauth proxy. After the sign out, it will then check the annotation notebooks.opendatahub.io/oauth-logout-url, which will finally redirect the user back to the project details page and add a logout param to help show the notification to indicate successful logout.

Jupyter tile:
Similar to above, first navigate to ${dashboard_origin}/notebook/${dashboard_namespace}/${notebook_name}/logout page, then fetch the route there and add /oauth/sign_out to the URL to sign out. After that, it checks the annotation too, and navigates back to the notebook controller page. The only difference here is the Jupyter tile notebook doesn't add a search param later, so it will not even show a notification for the successful logout.

So the issue is still there and we may need to figure out a way to better handle it.

@andrewballantyne andrewballantyne removed the needs-info Further information is requested from the reporter or from another source label Sep 26, 2023
@harshad16
Copy link
Member

On Notebook-controller end, we are also trying to find a solution on our end for this.
Issue: opendatahub-io/kubeflow#157

@andrewballantyne
Copy link
Member Author

Similar but not the same issue @harshad16 -- that, however, has been discussed before so I'm glad you have something logged 🎉

This is about when our Dashboard hard refreshes/redirects after being sent back from JupyterLab -- this should be entirely a flow on our side as I understand the issue.

@harshad16
Copy link
Member

Thank you for clarifying the difference, if we find some insights
will share them with you.

@dgutride dgutride added the stale Issue was created a long time ago and nothing has happened label Dec 8, 2023
@andrewballantyne andrewballantyne removed the stale Issue was created a long time ago and nothing has happened label Jan 18, 2024
@dgutride
Copy link
Contributor

dgutride commented Feb 6, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/ds-projects Data Science Projects feature (formerly Data Science Groupings - DSG) feature/notebook-controller KubeFlow NoteBook Controller (KFNBC) Feature kind/tech-debt A technical debt item for the development team. E.g. Refactors / Tests / etc migrated priority/normal An issue with the product; fix when possible
Projects
Status: Done
Archived in project
Status: No status
Development

No branches or pull requests

4 participants