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
Black and White listings for the Extension Manager #7989
Black and White listings for the Extension Manager #7989
Conversation
Thanks for making a pull request to JupyterLab! To try out this branch on binder, follow this link: |
Nice work!
One question I had was about where the blacklist would be served from. I assumed it would be fetched directly from a github repo, not served locally, so that any changed to it would happen without having to upgrade JupyterLab.
As far as I can tell, this PR takes a different approach of serving the file locally, is that right?
Thx @saulshanabrook for looking at that. I should have bring more context around the work done so far. First, I have added a comment here further to the discussion at the jupyterlab meeting. The idea is to not allow the user to change the URIs via settings but rather to enforce them via configuration on server side. Therefor, this PR does an initial fetch on the server to get the URIs and then fetches the effective listings from whatever defined (github repo...) I have added a simple example in But yes, the goal is to host those listings on github. Hope this clarifies a bit. I still need to document all that but I will do it when it will be a bit more stable. |
@MarsBarLee I like how it looks better too! |
@MarsBarLee That looks good. I don't have a strong opinion, but we also discussed grey for the disable button. I have a weak preference for blue over grey. In that once that warning is opened blue is the lowest friction 'disable this dangerous thing' option. I like it a lot better than the check box. Mars and I did a UX Review I've asked her to post it below. |
Hey Eric, I have my feedback here. UX ReviewFor the warning text:
For the UI, when the extension installer is disabled
For the search bar at the top, change the icon to the same icon already used in the command palette search bar.With these changes included we should be good to include in JupyterLab 2.1 |
@MarsBarLee Thx for the enhancements. I have implemented the following: Warning text:
When the extension installer is disabled.
For the search bar at the top
Here is what it gives. |
I am trying this locally without a blacklist or whitelist. It seems like there might be some error there in that logic? The server seems to returning no whitelist of blacklist URLs (as you can see from the network response here), but it is saying an extension is not on the whitelist. Could you try to verify this locally to see if it works for you? |
Gosh, you saved the lab from complete extension breakdown..., Saul. I have pushed 66e4921 to fix that and also tested everything in the 3 modes (default, black, white). |
OK it works for me now! I will merge when tests pass.
@saulshanabrook Based on our conversation, I have pushed de5de53 to ensure that the extensions discovery tab is populated on first manager display (this is a behavior change compared to master, but as discussed it is a good enhancement). CI is back green (except the notable LGTM to merge. |
OK the default load now works. Just had one more fix, so that react doesn't give a console warning about keys.
Co-Authored-By: Saul Shanabrook <s.shanabrook@gmail.com>
This is a PR to implement Black and White listings for the Extension Manager as discussed in #7933 and #7967.
It must be seen in conjunction with jupyterlab/jupyterlab_server#82