Skip to content

Update protocol to support multi-user undo and redo on Text.edit #644

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

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

hyemmie
Copy link
Contributor

@hyemmie hyemmie commented Sep 15, 2023

What this PR does / why we need it: A new operation, EditReverse, is proposed to support multi-user undo and redo functionality in text.edit. (yorkie-team/yorkie-js-sdk#635)
To support this, the server also needs to modify the protocol buffer. This PR defines the new EditReverse operation and modifies the protocol buffer to allow replicas to send and receive EditReverse operations.

Which issue(s) this PR fixes:

It fixs #49 partially.

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Additional documentation:


Checklist:

  • Added relevant tests or not required
  • Didn't break anything

@hyemmie hyemmie added enhancement 🌟 New feature or request protocol changed 📝 Whether the protocol has changed labels Sep 15, 2023
@hyemmie hyemmie self-assigned this Sep 15, 2023
@hyemmie hyemmie mentioned this pull request Sep 15, 2023
2 tasks
@codecov
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

Attention: Patch coverage is 0% with 56 lines in your changes missing coverage. Please review.

Project coverage is 49.19%. Comparing base (940941a) to head (57e196e).
Report is 340 commits behind head on main.

Files with missing lines Patch % Lines
api/converter/from_pb.go 0.00% 34 Missing ⚠️
api/converter/to_pb.go 0.00% 22 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #644      +/-   ##
==========================================
- Coverage   49.47%   49.19%   -0.28%     
==========================================
  Files          69       69              
  Lines        9951    10007      +56     
==========================================
  Hits         4923     4923              
- Misses       4512     4568      +56     
  Partials      516      516              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hyemmie hyemmie marked this pull request as ready for review September 15, 2023 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🌟 New feature or request protocol changed 📝 Whether the protocol has changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants