-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add rootTreeNode for JsonTree #135
Conversation
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.
LGTM except for the failing tests 😵💫
public sealed interface Others : PresenceChange { | ||
public sealed class Others(public open val changed: PresenceInfo) : PresenceChange { | ||
|
||
/** | ||
* Means that the client has established a connection with the server, | ||
* enabling real-time synchronization. | ||
*/ | ||
public data class Watched(public val watched: PresenceInfo) : Others | ||
public data class Watched(override val changed: PresenceInfo) : Others(changed) | ||
|
||
/** | ||
* Means that the client has been disconnected. | ||
*/ | ||
public data class Unwatched(public val unwatched: PresenceInfo) : Others | ||
public data class Unwatched(override val changed: PresenceInfo) : Others(changed) | ||
|
||
/** | ||
* Means that the presences of the client has been updated. | ||
*/ | ||
public data class PresenceChanged(public val changed: PresenceInfo) : Others | ||
public data class PresenceChanged(override val changed: PresenceInfo) : | ||
Others(changed) | ||
} |
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.
I think this would be more compact.
public sealed interface Others : PresenceChange {
public val changed: PresenceInfo
/**
* Means that the client has established a connection with the server,
* enabling real-time synchronization.
*/
public data class Watched(override val changed: PresenceInfo) : Others
/**
* Means that the client has been disconnected.
*/
public data class Unwatched(override val changed: PresenceInfo) : Others
/**
* Means that the presences of the client has been updated.
*/
public data class PresenceChanged(override val changed: PresenceInfo) : Others
}
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.
I changed Others
back to interface in 9ae165c.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #135 +/- ##
==========================================
- Coverage 83.05% 78.24% -4.82%
==========================================
Files 63 63
Lines 3654 3672 +18
Branches 534 572 +38
==========================================
- Hits 3035 2873 -162
- Misses 325 502 +177
- Partials 294 297 +3
☔ View full report in Codecov by Sentry. |
What this PR does / why we need it?
rootTreeNode
forJsonTree
and make onlyJsonTree.TreeNode
publicly visibleSelectOpInfo
Operation
s (I think I missed some changes in the JS SDK.)PresenceChange.Others
Any background context you want to provide?
What are the relevant tickets?
Fixes #
Checklist