-
Notifications
You must be signed in to change notification settings - Fork 728
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
Improve caching when expanding nodes in hierarchical data #8902
Conversation
Reviewed 2 of 4 files at r1. client/src/main/java/com/vaadin/client/data/AbstractRemoteDataSource.java, line 187 at r1 (raw file):
"it will added"? uitest/src/test/java/com/vaadin/tests/components/treegrid/TreeGridExpandDataRequestTest.java, line 12 at r1 (raw file):
remove RunLocally uitest/src/test/java/com/vaadin/tests/components/treegrid/TreeGridExpandDataRequestTest.java, line 50 at r1 (raw file):
pipe character not what the UI puts there (uses semicolon) so this test would always return false Comments from Reviewable |
Review status: 2 of 4 files reviewed at latest revision, 4 unresolved discussions, some commit checks failed. client/src/main/java/com/vaadin/client/data/AbstractRemoteDataSource.java, line 570 at r1 (raw file):
"is contains"? Also, not clear to me why this is a case where "invalidCache" is invalid Comments from Reviewable |
Review status: 2 of 4 files reviewed at latest revision, 4 unresolved discussions. client/src/main/java/com/vaadin/client/data/AbstractRemoteDataSource.java, line 192 at r2 (raw file):
could still add mention about null vs. empty map, and a mention that the keys of this map have already been adjusted for the insertion client/src/main/java/com/vaadin/client/data/AbstractRemoteDataSource.java, line 714 at r2 (raw file):
what if invalidatedRows is an empty map at this point? server/src/main/java/com/vaadin/data/provider/HierarchicalDataCommunicator.java, line 386 at r2 (raw file):
(not reseting pushRows - I assume this is intentional, but is this always correct?) Comments from Reviewable |
Review status: 1 of 4 files reviewed at latest revision, 5 unresolved discussions. client/src/main/java/com/vaadin/client/data/AbstractRemoteDataSource.java, line 714 at r2 (raw file): Previously, hesara (Henri Sara) wrote…
That basically means that instead of ARDS getting the data push it got more row changes. Technically, we could still attempt to track the invalidated row indices, but in my opinion that's just too risky. The promise is simple "if you add and immediately push the new rows, we're going to deal with it". Any other case goes through cache coverage check and request to the server. server/src/main/java/com/vaadin/data/provider/HierarchicalDataCommunicator.java, line 386 at r2 (raw file): Previously, hesara (Henri Sara) wrote…
this is only about pushing expanded rows now (and this has a potential issue with changing the columns of grid in expand listener), any other requests will be handled as normally. uitest/src/test/java/com/vaadin/tests/components/treegrid/TreeGridExpandDataRequestTest.java, line 50 at r1 (raw file): Previously, hesara (Henri Sara) wrote…
The pipe in this case comes from the item, not the UI logging output (I did run the tests before applying the client-side change to make sure that this did indeed fail before). I used semicolon in logging on purpose to make clearer. Comments from Reviewable |
Reviewed 1 of 4 files at r1, 1 of 1 files at r3. client/src/main/java/com/vaadin/client/data/AbstractRemoteDataSource.java, line 714 at r2 (raw file): Previously, tsuoanttila (Teemu Suo-Anttila) wrote…
this could be made clear to the next reader in the form of comments Comments from Reviewable |
Review status: 3 of 4 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. client/src/main/java/com/vaadin/client/data/AbstractRemoteDataSource.java, line 192 at r2 (raw file): Previously, hesara (Henri Sara) wrote…
Done. client/src/main/java/com/vaadin/client/data/AbstractRemoteDataSource.java, line 714 at r2 (raw file): Previously, hesara (Henri Sara) wrote…
Done. Comments from Reviewable |
Review status: 3 of 5 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. client/src/main/java/com/vaadin/client/data/AbstractRemoteDataSource.java, line 602 at r4 (raw file):
"cache" uitest/src/test/java/com/vaadin/tests/applicationcontext/CloseSessionTest.java, line 9 at r4 (raw file):
(good but unrelated changes - should probably be in a separate PR) Comments from Reviewable |
b983e2e
to
d26317d
Compare
Reviewed 4 of 4 files at r5. Comments from Reviewable |
Fixes #8790
This change is