Skip to content
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

Extract @jupyterlab/shared-models to @jupyter-notebook/ydoc #13389

Merged

Conversation

fcollonval
Copy link
Member

References

Follow-up of jupyterlab/frontends-team-compass#152 (comment)

Related PR: jupyter-server/jupyter_ydoc#86

Code changes

Extract the Y document schemas in a mono repo along side the Python version of the schemas.

The fromJSON has been extracted too has it requires to know internal details of the document schemas; hence is better handle directly over there.

User-facing changes

N/A

Backwards-incompatible changes

The API did not changed but is provided by another package.

@jupyterlab-probot
Copy link

Thanks for making a pull request to jupyterlab!
To try out this branch on binder, follow this link: Binder

@fcollonval fcollonval marked this pull request as ready for review November 8, 2022 08:29
@fcollonval fcollonval marked this pull request as draft November 8, 2022 08:29
@fcollonval fcollonval changed the title Maintenance/extract-shared-models Extract @jupyterlab/shared-models to @jupyter-notebook/ydoc Nov 8, 2022
@fcollonval fcollonval marked this pull request as ready for review November 8, 2022 13:33
@fcollonval fcollonval merged commit 20bfb57 into jupyterlab:master Nov 8, 2022
@fcollonval fcollonval deleted the maintenance/extract-shared-models branch November 8, 2022 14:27
@fcollonval
Copy link
Member Author

@meeseeksdev please backport to 3.6.x

@lumberbot-app
Copy link

lumberbot-app bot commented Nov 8, 2022

Oops, something went wrong applying the patch ... Please have a look at my logs.

@fcollonval
Copy link
Member Author

@meeseeksdev please backport to 3.6.x

@lumberbot-app
Copy link

lumberbot-app bot commented Nov 8, 2022

Oops, something went wrong applying the patch ... Please have a look at my logs.

fcollonval added a commit that referenced this pull request Nov 15, 2022
… @jupyter-notebook/ydoc) (#13398)

* Backport #13398 on branch 3.6.x (Extract @jupyterlab/shared-models to @jupyter-notebook/ydoc)

* Don't rely on `metadataChanged`
That API will change in ydoc 0.3.x vs 0.2.x

* Fix integrity

* Fix JS tests
@jtpio
Copy link
Member

jtpio commented Nov 18, 2022

Should the extension migration be updated to indicate that @jupyterlab/shared-models has been extracted?

The current version still indicates the following:

https://jupyterlab.readthedocs.io/en/latest/extension/extension_migration.html#api-breaking-changes

image

hbcarlos pushed a commit to hbcarlos/jupyterlab that referenced this pull request Jan 29, 2023
…ab#13389)

* Switch to @jupyter-notebook/ydoc

* Move `fromJSON` in `@jupyter-notebook/ydoc`

* Bump to @jupyter-notebook/ydoc 0.2.0-alpha.1

* Don't modify the staging folder

* Remove shared model from CI

* Fix example

* Switch to final 0.2.0 ydoc release
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants