-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Improve Galata #13909
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
Improve Galata #13909
Conversation
|
Thanks for making a pull request to jupyterlab! |
|
|
for more information, see https://pre-commit.ci
|
Thanks for the review @jtpio I fix the linter errors. |
|
Looks like the check is now passing: Maybe we'll want to get #13931 in first, to make sure the UI tests checks pass and this PR doesn't introduce regressions. |
|
Merging to move forward - I keep working on #13931 |



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
mockUserto mock the user provided by the identity endpoint.It renames
window.galataiptowindow.galataas 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_serveris provided.User-facing changes
None
Backwards-incompatible changes
Remove
JupyterLab.notificationManagertrick used up to now to get access to notifications.window.galataipis deprecated in favor ofwindow.galata