-
Notifications
You must be signed in to change notification settings - Fork 67
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
fix: Use incremental numeric id as a key for Tree Grid items #3046
Conversation
Using Object::toString as an item's key for server-client communication makes item's data visible on the client side, so generated numeric id is used instead.
...-flow-parent/vaadin-grid-flow/src/main/java/com/vaadin/flow/component/treegrid/TreeGrid.java
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Hi @mshabarov and @sissbruecker, when i performed cherry-pick to this commit to 23.0, i have encountered the following issue. Can you take a look and pick it manually? |
Hi @mshabarov and @sissbruecker, when i performed cherry-pick to this commit to 22.0, i have encountered the following issue. Can you take a look and pick it manually? |
Hi @mshabarov and @sissbruecker, when i performed cherry-pick to this commit to 14.8, i have encountered the following issue. Can you take a look and pick it manually? |
* fix: Use incremental numeric id as a key for Tree Grid items Using Object::toString as an item's key for server-client communication makes item's data visible on the client side, so generated numeric id is used instead. * Use serializable map * Use index and depth as an item ID * fix data provider getId implementation * use custom unique key provider in tests Co-authored-by: Soroosh Taefi <taefi.soroosh@gmail.com> Co-authored-by: Sascha Ißbrücker <sissbruecker@vaadin.com> (cherry picked from commit 8fe0861)
* fix: Use incremental numeric id as a key for Tree Grid items Using Object::toString as an item's key for server-client communication makes item's data visible on the client side, so generated numeric id is used instead. * Use serializable map * Use index and depth as an item ID * fix data provider getId implementation * use custom unique key provider in tests Co-authored-by: Soroosh Taefi <taefi.soroosh@gmail.com> Co-authored-by: Sascha Ißbrücker <sissbruecker@vaadin.com> (cherry picked from commit 8fe0861)
* fix: Use incremental numeric id as a key for Tree Grid items Using Object::toString as an item's key for server-client communication makes item's data visible on the client side, so generated numeric id is used instead. * Use serializable map * Use index and depth as an item ID * fix data provider getId implementation * use custom unique key provider in tests Co-authored-by: Soroosh Taefi <taefi.soroosh@gmail.com> Co-authored-by: Sascha Ißbrücker <sissbruecker@vaadin.com> (cherry picked from commit 8fe0861)
…3124) * fix: Use incremental numeric id as a key for Tree Grid items Using Object::toString as an item's key for server-client communication makes item's data visible on the client side, so generated numeric id is used instead. * Use serializable map * Use index and depth as an item ID * fix data provider getId implementation * use custom unique key provider in tests Co-authored-by: Soroosh Taefi <taefi.soroosh@gmail.com> Co-authored-by: Sascha Ißbrücker <sissbruecker@vaadin.com> (cherry picked from commit 8fe0861) Co-authored-by: Mikhail Shabarov <61410877+mshabarov@users.noreply.github.com>
…3125) * fix: Use incremental numeric id as a key for Tree Grid items Using Object::toString as an item's key for server-client communication makes item's data visible on the client side, so generated numeric id is used instead. * Use serializable map * Use index and depth as an item ID * fix data provider getId implementation * use custom unique key provider in tests Co-authored-by: Soroosh Taefi <taefi.soroosh@gmail.com> Co-authored-by: Sascha Ißbrücker <sissbruecker@vaadin.com> (cherry picked from commit 8fe0861) Co-authored-by: Mikhail Shabarov <61410877+mshabarov@users.noreply.github.com>
…3126) * fix: Use incremental numeric id as a key for Tree Grid items Using Object::toString as an item's key for server-client communication makes item's data visible on the client side, so generated numeric id is used instead. * Use serializable map * Use index and depth as an item ID * fix data provider getId implementation * use custom unique key provider in tests Co-authored-by: Soroosh Taefi <taefi.soroosh@gmail.com> Co-authored-by: Sascha Ißbrücker <sissbruecker@vaadin.com> (cherry picked from commit 8fe0861) Co-authored-by: Mikhail Shabarov <61410877+mshabarov@users.noreply.github.com>
This ticket/PR has been released with Vaadin 23.1.0.beta1 and is also targeting the upcoming stable 23.1.0 version. |
Description
Using Object::toString as an item's key for server-client communication makes item's data visible on the client side, so generated numeric id is used instead.
Type of change
Checklist
Additional for
Feature
type of change