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

fix(client): provide the correct notebook search param for anon users #2479

Merged
merged 8 commits into from
Apr 20, 2023

Conversation

leafty
Copy link
Member

@leafty leafty commented Apr 18, 2023

This fixes the "Start a session" button for anonymous users viewing a notebook in a project's files tab.

Fixes #2477.

/deploy #persist #cypress

leafty added 5 commits April 18, 2023 10:16
This fixes the "Start a session" button for anonymous users viewing a
notebook in a project's files tab.

Fixes #2477.
@leafty leafty marked this pull request as ready for review April 18, 2023 09:39
@leafty leafty requested a review from a team as a code owner April 18, 2023 09:39
@RenkuBot
Copy link
Contributor

You can access the deployment of this PR at https://renku-ci-ui-2479.dev.renku.ch

cy.contains("01-CountFlights.ipynb").should("be.visible");
cy.contains("01-CountFlights.ipynb").click();
cy.wait("@getCountFlights");
cy.get("#checkNotebookIcon", { timeout: 10_000 })
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: I think the UI is waiting for a kg request in this case; not sure how to avoid waiting for the button to go from "loading" to "Start a session" faster.

@leafty leafty temporarily deployed to renku-ci-ui-2479 April 18, 2023 09:47 — with GitHub Actions Inactive
@leafty leafty temporarily deployed to renku-ci-ui-2479 April 18, 2023 11:04 — with GitHub Actions Inactive
@leafty leafty temporarily deployed to renku-ci-ui-2479 April 18, 2023 12:02 — with GitHub Actions Inactive
@leafty leafty temporarily deployed to renku-ci-ui-2479 April 18, 2023 14:10 — with GitHub Actions Inactive
@lorenzo-cavazzi
Copy link
Member

The code looks good. Do you mind if I review this after merging #2469? I found a tricky case while testing but I assume it's already handled there

@leafty leafty deployed to renku-ci-ui-2479 April 19, 2023 12:32 — with GitHub Actions Active
Copy link
Member

@lorenzo-cavazzi lorenzo-cavazzi left a comment

Choose a reason for hiding this comment

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

Nice fix, this works well!

@leafty leafty merged commit 88fc292 into master Apr 20, 2023
@leafty leafty deleted the leafty/2477-fix-start-session-button branch April 20, 2023 07:30
@RenkuBot
Copy link
Contributor

Tearing down the temporary RenkuLab deplyoment for this PR.

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

Successfully merging this pull request may close these issues.

Start session button has incorrect notebook search param in file explorer
3 participants