-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Clean up datastore creator and get storeid from page config #7009
Conversation
Thanks for making a pull request to JupyterLab! To try out this branch on binder, follow this link: |
05d0dcc
to
246fefd
Compare
if self.store_id is not None: | ||
# TODO: Temporary minimal reaction: | ||
self.log.warning("Trying to reopen store that is already connected") | ||
raise web.HTTPError(400) |
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.
The bit before this acts as a pretty decent placeholder (raises if trying to connect multiple times with the same store id).
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.
We should probably also fail here if the store_id
is not given.
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.
I removed the backend knowledge of the store_id
altogether. I actually think this is maybe ok? It just identifies users by connection. If you lose connection, then you make a new one and it treats you as a new peer.
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.
It possibly makes things like checkpoints a little harder. I'll make a separate issue for checkpoints. We can reintroduce this concept if needed after that.
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.
@saulshanabrook I'm happy for this to be in when you are. Once we merge our respective PRs we should be pretty close to being able to knit them together.
Builds on #6871
TableManager
abstraction. We moved thechanged
signal to theTableManager
and will move the typing of the schema to the coreDatastore
object in the future. Ideally, it would be nice to remove theTableManager
abstraction as well, eventually.Now this depends on jupyterlab/jupyterlab_server#74