-
Notifications
You must be signed in to change notification settings - Fork 59
Introduce Custom Settings for JupyterGIS #619
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
Conversation
Currently having the failure - cc: @martinRenou |
Integration tests report: appsharing.space |
"access": "public" | ||
}, | ||
"jupyterlab": { | ||
"schemaDir": "schema", |
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.
Line 17 of this file, you want to list the schema folder as part of the package file
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!!
Here you are using a global settingsState
. This will not work well for listening to settings changes.
Instead you should probably pass around the settingRegistry
to the JupyterGISModelFactory
, and add a new constructor option to the JupyterGISModel
so that it can own the settingRegistry
and listen to setting changes there.
@arjxn-py could you write a description for this PR? |
Done, thanks to recall that :) |
Thanks for adding it :) |
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!
packages/schema/src/interfaces.ts
Outdated
contentsManager: Contents.IManager | undefined; | ||
filePath: string; | ||
|
||
getSettings(): any; |
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.
Can we get better typing than this?
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.
Especially, the any
is shadowing the fact that it can be null
.
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.
Sure, i'll look into this
The failure is legit, i'll look into it |
Co-authored-by: martinRenou <[email protected]>
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!!!!
Description
Shall close #456
This PR introduces support for custom settings in JupyterGIS, addressing the current limitation of the hardcoded third-party CORS proxy used in
tools.ts
. The proxy URL is now configurable via the JupyterLab Settings UI, allowing users to specify their own proxy endpoint or disable it entirely.settings.mp4
Checklist
Resolves #XXX
.Failing lint checks can be resolved with:
pre-commit run --all-files
jlpm run lint
📚 Documentation preview: https://jupytergis--619.org.readthedocs.build/en/619/
💡 JupyterLite preview: https://jupytergis--619.org.readthedocs.build/en/619/lite