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

Modify logout and control panel redirect for project notebooks #846

Merged

Conversation

DaoDaoNoCode
Copy link
Member

@DaoDaoNoCode DaoDaoNoCode commented Dec 8, 2022

Description

Closes #808
There is no way to change the text Hub Control Panel, it's hardcoded in JupyterLab https://github.com/jupyterlab/jupyterlab/blob/master/packages/hub-extension/src/index.ts#L74-L80
The logout success prompt will be triggered twice, have no idea why, left a comment and waiting for reviews.

How Has This Been Tested?

Create a notebook in DSG, login to the notebook, and try to click the logout and hub control panel button.

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

Copy link
Member

@andrewballantyne andrewballantyne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Baring the one tiny text change, this is good to merge.

/approve
/hold

@openshift-ci openshift-ci bot added lgtm do-not-merge/hold This PR is hold for some reason labels Dec 9, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 9, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andrewballantyne

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Dec 9, 2022
@openshift-ci openshift-ci bot removed the lgtm label Dec 9, 2022
@andrewballantyne
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Dec 9, 2022
@andrewballantyne andrewballantyne removed the do-not-merge/hold This PR is hold for some reason label Dec 9, 2022
@openshift-merge-robot openshift-merge-robot merged commit 53ece14 into opendatahub-io:main Dec 9, 2022
strangiato pushed a commit to strangiato/odh-dashboard that referenced this pull request Oct 18, 2023
…atahub-io#846)

* Modify logout and control panel redirect for project notebooks

* address comments

* use hook provided by react-router-dom instead of custom hook

* remove comment

* add notebook name in the success prompt

* modify hook

* handle no notebook situation

* reduce hook running time

* get the correct notebook name

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

Successfully merging this pull request may close these issues.

[Bug]: Workbench logout lands on broken dashboard page
3 participants