Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

OT refactor followups #1497

Merged
merged 36 commits into from
Aug 9, 2018
Merged

OT refactor followups #1497

merged 36 commits into from
Aug 9, 2018

Conversation

scofalik
Copy link
Contributor

@scofalik scofalik commented Aug 9, 2018

Suggested merge commit message (convention)

Fix: Additional improvements for the new OT algorithms. Added relations to better solve cases in undo. Moved error logging from debug tools to OT code. Improved cloning mechanism inside WrapOperation. Aligned Schema#getValidRanges results to changes in AttributeOperation. Unified RemoveOperation and ReinsertOperation to have just one MoveOperation. Improved model.Range#getTransformedByMergeOperation. Simplified LiveRange#event:change second parameter which is now an object containing Position not an Operation. Other improvements in OT algorithms. Improvements in docs. Closes ckeditor/ckeditor5#4383. Closes ckeditor/ckeditor5#4379. Closes ckeditor/ckeditor5#4382. Closes ckeditor/ckeditor5#4375. Closes ckeditor/ckeditor5#4376. Closes ckeditor/ckeditor5#4377. Closes ckeditor/ckeditor5#4378. Closes ckeditor/ckeditor5#4390. Closes ckeditor/ckeditor5#4393.

BREAKING CHANGE: LiveRange#event:change second parameter is now an object containing property deletionPosition. It can be model.Position instance, if the range was moved to the graveyard root. The position is equal to the position from which nodes were removed. Otherwise, it is set to null.

BREAKING CHANGE: Schema#getValidRanges will return only flat ranges now. If an attribute is allowed on some nodes and in those nodes children, multiple "nested" ranges will be returned.

BREAKING CHANGE: Schema#getValidRanges is a generator now.

…nPosition` not operation that changed the range.
…pecial case of unwrapping a node that is already in the graveyard.
# Conflicts:
#	src/model/operation/transform.js
# Conflicts:
#	tests/model/operation/transform.js
# Conflicts:
#	src/model/operation/transform.js
#	tests/dev-utils/enableenginedebug.js
#	tests/model/operation/transform.js
# Conflicts:
#	tests/model/operation/transform.js
@scofalik
Copy link
Contributor Author

scofalik commented Aug 9, 2018

Although changes from branch t/1469 are included here, this PR does not close this issue as we are still discussing what we want to do with it.

@coveralls
Copy link

coveralls commented Aug 9, 2018

Coverage Status

Coverage decreased (-0.9%) to 97.93% when pulling 3d9af07 on t/ot-followups into f7f2837 on master.

@scofalik
Copy link
Contributor Author

scofalik commented Aug 9, 2018

I've pushed some fixes but they broke the CI. For sure one of the problems is that now ckeditor5-undo changed and I've pushed the change to t/ckeditor5-engine/ot-followups. But other than that I see that something else fails, even though it is okay locally.

@scofalik
Copy link
Contributor Author

scofalik commented Aug 9, 2018

ckeditor/ckeditor5-undo#90 Okay I am stupid, tests are failing in engine too cause engine uses undo -_-

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants