-
Notifications
You must be signed in to change notification settings - Fork 4
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
Prevent remote-change events in RealtimeSyncOff mode #189
Conversation
WalkthroughThe recent updates include a version bump in Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- yorkie/src/androidTest/kotlin/dev/yorkie/core/ClientTest.kt (1 hunks)
- yorkie/src/main/kotlin/dev/yorkie/core/Client.kt (1 hunks)
Additional comments not posted (2)
yorkie/src/main/kotlin/dev/yorkie/core/Client.kt (1)
242-245
: Ensure correct handling ofSyncMode
values to prevent remote changes inRealtimeSyncOff
mode.This change correctly implements the logic to ignore remote changes when the client is in
RealtimeSyncOff
mode, aligning with the PR's objectives. Good use of conditional checks to differentiate behavior based onSyncMode
.yorkie/src/androidTest/kotlin/dev/yorkie/core/ClientTest.kt (1)
701-770
: Add comprehensive test forRealtimeSyncOff
mode.This test method effectively checks that no remote changes are received when the client is in
RealtimeSyncOff
mode. It simulates the scenario described in the PR objectives and ensures that the new functionality behaves as expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (4)
- gradle.properties (1 hunks)
- yorkie/src/androidTest/kotlin/dev/yorkie/core/ClientTest.kt (1 hunks)
- yorkie/src/main/kotlin/dev/yorkie/core/Client.kt (1 hunks)
- yorkie/src/test/kotlin/dev/yorkie/document/crdt/CrdtTreeTest.kt (3 hunks)
Files skipped from review due to trivial changes (1)
- gradle.properties
Files skipped from review as they are similar to previous changes (2)
- yorkie/src/androidTest/kotlin/dev/yorkie/core/ClientTest.kt
- yorkie/src/main/kotlin/dev/yorkie/core/Client.kt
Additional comments not posted (3)
yorkie/src/test/kotlin/dev/yorkie/document/crdt/CrdtTreeTest.kt (3)
12-12
: Addedimport org.junit.Ignore
to support ignoring specific tests.
189-244
: Added a comprehensive testshould merge and edit different levels with edit
, currently ignored due to dependencies on JS SDK.Ensure the documentation clearly states the dependency on the JS SDK implementation to avoid confusion.
107-108
: Simplified deletion range inshould delete text nodes with edit
.
What this PR does / why we need it?
Prevent remote-change events in RealtimeSyncOff mode.
(I have also cleaned up the outdated test code.)
Any background context you want to provide?
What are the relevant tickets?
Fixes #
Checklist
Summary by CodeRabbit
New Features
0.4.20
.Bug Fixes
Tests
Ignore
annotations for specific test cases.