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

XWIKI-19180: In case of merge conflict choosing "Reload editors" won't refresh the content #2622

Merged
merged 5 commits into from
Jan 24, 2024

Conversation

douakli
Copy link
Contributor

@douakli douakli commented Nov 17, 2023

Jira: https://jira.xwiki.org/browse/XWIKI-19180
Jira: https://jira.xwiki.org/browse/XWIKI-19181

This PR fixes a bug where, when editing in realtime wysiwyg editor, when the user clicks on save and a conflict occurs, the "Reload editor" option would have no effect.
In order to fix this bug, we removed the custom conflict handeling which is now unnecessary. Removing this custom conflict handeling also happens to fix https://jira.xwiki.org/browse/XWIKI-19181 where merge conflicts would cause error messages to be displayed.

This PR also adds a functional test for the conflict handeling and merges.
This PR however does not add a functional test for conflicts happening when an auto-save is triggered.

Thanks.

…t refresh the content

XWIKI-19181: The autosave doesn't behave nicely when a merge conflict occurs
Copy link
Member

@mflorea mflorea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, well done @douakli ! I'm really happy to see old duplicated code being removed :)

…ltime-webjar/src/main/webjar/saver.js


Fix typo.
…ltime-wysiwyg/xwiki-platform-realtime-wysiwyg-test/xwiki-platform-realtime-wysiwyg-test-docker/src/test/it/org/xwiki/realtime/wysiwyg/test/ui/RealtimeWYSIWYGEditorIT.java


Update test order.
…ltime-wysiwyg/xwiki-platform-realtime-wysiwyg-test/xwiki-platform-realtime-wysiwyg-test-docker/src/test/it/org/xwiki/realtime/wysiwyg/test/ui/RealtimeWYSIWYGEditorIT.java


Remove extra empty line.
…ltime-wysiwyg/xwiki-platform-realtime-wysiwyg-test/xwiki-platform-realtime-wysiwyg-test-docker/src/test/it/org/xwiki/realtime/wysiwyg/test/ui/RealtimeWYSIWYGEditorIT.java


Update test order.
@mflorea mflorea merged commit bd40c93 into xwiki:master Jan 24, 2024
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.

4 participants