Skip to content

Conversation

@fcollonval
Copy link
Member

@fcollonval fcollonval commented Feb 2, 2023

References

Extract improvement of Galata from #13240

Code changes

The major change in Galata is the switch from runtime injection of the helper to a regular JupyterLab extension. This allows to get the helpers in the same namespace as JupyterLab - hence it gives us access to some non-token based elements like Dialogs.

Building on that, this introduces the ability to register listener to dialog and notifications events to make tests more robust; e.g. sometimes a test can be flaky because randomly some dialogs get in the way; with the new listener you could dismissed any random dialogs that may appear.

Adds new fixture mockUser to mock the user provided by the identity endpoint.

It renames window.galataip to window.galata as the later ip is not easy to comprehend (it stands for in-page).

As the in-page helpers are now part of an extension, the server setup needs to evolve to add that extra extension. To ease future evolution of the server setup, a new helper jupyterlab.galata.configure_jupyter_server is provided.

User-facing changes

None

Backwards-incompatible changes

Remove JupyterLab.notificationManager trick used up to now to get access to notifications.
window.galataip is deprecated in favor of window.galata

@jupyterlab-probot
Copy link

Thanks for making a pull request to jupyterlab!
To try out this branch on binder, follow this link: Binder

@fcollonval fcollonval marked this pull request as draft February 2, 2023 16:41
@fcollonval fcollonval marked this pull request as ready for review February 7, 2023 10:24
@fcollonval
Copy link
Member Author

check-links is expected to fail due to a new link to a to-be-added file.

@jtpio
Copy link
Member

jtpio commented Feb 8, 2023

Thanks this looks good 👍

The lint CI failure looks relevant though:

image

@fcollonval
Copy link
Member Author

Thanks for the review @jtpio I fix the linter errors.

@jtpio
Copy link
Member

jtpio commented Feb 8, 2023

Restarting the check release check, not sure it's relevant:

image

@jtpio
Copy link
Member

jtpio commented Feb 8, 2023

Looks like the check is now passing:

image

Maybe we'll want to get #13931 in first, to make sure the UI tests checks pass and this PR doesn't introduce regressions.

@fcollonval
Copy link
Member Author

Merging to move forward - I keep working on #13931

@fcollonval fcollonval merged commit e81eb3d into jupyterlab:master Feb 9, 2023
@fcollonval fcollonval deleted the enh/improve-galata branch February 9, 2023 09:05
@jtpio jtpio mentioned this pull request Sep 7, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants