-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[0.8] feat: set the update tag from yjs based on the origin #3608
[0.8] feat: set the update tag from yjs based on the origin #3608
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Hi @husseinraoouf! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
I'd call it It would also require adjustments for syncLexicalUpdateToYjs that checks for tag |
@fantactuka Makes sense I will update the pr
Can I ask What is the expected release date for 0.8 |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
… historic and clean up
@fantactuka @trueadm I updated the pr with the requested changes, thank you for the review |
Theres's no specific release date for 0.8, but we can do it in the next few days probably. |
Hey @acywatson any outlook on merging this one in soon? |
It needs to pass the integrity check first - looks like a prettier error |
@@ -234,7 +235,7 @@ export function syncLexicalUpdateToYjs( | |||
// types a character and we get it, we don't want to then insert | |||
// the same character again. The exception to this heuristic is | |||
// when we need to handle normalization merge conflicts. | |||
if (tags.has('collaboration')) { | |||
if (tags.has('collaboration') || tags.has('historic')) { |
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.
Do we need to do this part in order to accomplish the goal set out in the PR description? This seems like a behavioral change for the core, whereas I thought this PR was just trying to pass through the tags.
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.
@acywatson I thought i should handle both tags here because now the changes that come from the collaboration plugin could come with either of those two tags but if you want i can revert that
This PR makes the updates tags for updates coming from yjs change based on origin, so if the changes came from UndoManger the tag is set to
collaboration-history
and if the updates came from other places like websocket the tag is set tocollaboration
,this is to be able to know which updates came from the user's interaction and which updates came from other users through yjs