fix: fix next setNodeMarkup setp rebase fail when pre step is a setNodeMarkup step #21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When setNodeMarkup Step just change the attributes or marks of the node, it will not change the structure, so that time the return value of getMap should be an empty StepMap.
Changing a node's attributes should count as having that node's token changed. Other code relies on that.
Also I don't think adding data to steps without including it in their JSON structure is going to work, and changing the JSON structure at this point is not an option.
@marijnh Do you have any other solutions or ideas for this rebase failed issue? (Even for online co-editing, this failure is unexpected.)
I don't know what "the rebase failed" issue is.
Also, no, we can't change the JSON structure of Steps anymore -- people have that in their databases.
🌰 example:
A
Heading Nodehas two attrs - level and align.There are two user are co-editing: userA and userB
first, they are sync with server, they get the same doc:
second, at the same time
AStepBStepthird, the step which first sync to server will be save, and another will rebase on the saved setp and rebase fail( the map result
mappedis null )@marijnh Do you have any other solutions or ideas for this rebase failed issue?
Expected: Both of those steps are saved!
This is how the merging works, intentionally. With your patch, both steps will apply, but only the last one will take effect, so the result is arguably worse (the first one to commit gets overwritten), so that doesn't seem like an improvement.
If with my patch, there is a chance to get more info and do more when rebase.
Else, may need to implement one or two
SetAttrsStepfor our aim.You're going to have to find another way to solve this. This patch is not going to be acceptable.
Pull request closed