-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Do not load CSS of disabled federated extensions #11962
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
Do not load CSS of disabled federated extensions #11962
Conversation
|
Thanks for making a pull request to jupyterlab! |
|
Is this still a draft? |
|
I think it was left as a draft to double check if there was any side-effect to this. I'll rebase, fix the conflict and mark as ready. |
e01ffba to
237ba69
Compare
fcollonval
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jtpio
|
Can we backport this to 3.6? Maybe under a flag (which would be more code than the fix)? |
|
@meeseeksdev please backport to 3.6.x |
|
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
* Do not load CSS of disabled federated extensions * Add note to extension migration docs * Add an opt-in flag for 3.6.x series (cherry picked from commit 731a40e)
* Do not load CSS of disabled federated extensions * Add note to extension migration docs * Add an opt-in flag for 3.6.x series (cherry picked from commit 731a40e) Co-authored-by: krassowski <5832902+krassowski@users.noreply.github.com>
* Do not load CSS of disabled federated extensions * Add note to extension migration docs * Add an opt-in flag for 3.6.x series (cherry picked from commit 731a40e) Co-authored-by: krassowski <5832902+krassowski@users.noreply.github.com> Co-authored-by: Jeremy Tuloup <jeremy.tuloup@gmail.com>
References
Fixes #11728
Code changes
PageConfig.Extension.isDisabled(data.name))before loading the styles coming from federated extensions.User-facing changes
For example with a federated extension that adds the following CSS:
Before
After
Backwards-incompatible changes
This is a change of behavior that some deployments that have been depending on.
A new entry in this section of the docs could then be useful for reference purposes: https://jupyterlab.readthedocs.io/en/latest/extension/extension_migration.html#extension-development-changes