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

Do not do shortcut merge batch operations, do it one by one for toSlateOp #60

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ulion
Copy link
Contributor

@ulion ulion commented Feb 4, 2021

Just a fast fix for merge_node like operations. since currently, the map are collected in the first round run, then the 2nd round run to generate slate ops. but, during that, the path could change due to remove or insert node. In some complex data structure cases, it will cause error, mainly can not find slate path.
So now this quick do it one by one, step by step, with the current step map and temp doc tree. no shortcut, just do it one by one.
The code is not fully tested, but it passed two merge_node crash cases in my usage. will keep this up to date if there will be any fix follow up.

@ulion ulion force-pushed the feature/merge_node_re_implement branch from 0ab77fb to dfbb596 Compare February 7, 2021 05:13
@ulion
Copy link
Contributor Author

ulion commented Feb 7, 2021

Added a few commits to handle property remove operation (introduced by the other merged set undefined -> delete property commit.)
Still in testing...

@ulion
Copy link
Contributor Author

ulion commented Feb 9, 2021

the newest one commit added is for this issue: fbcbef0#r46907440
Since it is fixed here in the other way, I will just do not submit another PR for it in the main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant