yorkie-team / yorkie

Yorkie is a document store for collaborative applications.
https://yorkie.dev
Apache License 2.0
748 stars 134 forks source link

Incorrect indexes in TreeChange when running Tree.Style #882

Closed hackerwins closed 1 month ago

hackerwins commented 1 month ago

What happened:

When running Tree.Style, TreeChange events are returned with incorrectly calculated indexes. The calculation should be based on nodes rather than the range provided by the user.

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

The issue arises from the discrepancy between the range provided by the user and the node-based calculation used during Tree.Style execution.

Environment:

hackerwins commented 1 month ago

Android SDK: https://github.com/yorkie-team/yorkie-android-sdk/pull/199