Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Don't apply new filter to DP if filter not changed #231

Merged
merged 3 commits into from
Mar 18, 2019

Conversation

pekam
Copy link
Contributor

@pekam pekam commented Mar 12, 2019

Otherwise, DataProvider will get a new instance of the filter object
-> DataCommunicator thinks filter changed
-> destroys all data
-> rendered components are destroyed
-> client still thinks that everything is fine
-> flow-component-renderer doesn't find destroyed component instances
-> components not rendered

Fix #227


This change is Reviewable

Otherwise, DataProvider will get a new instance of the filter object
-> DataCommunicator thinks filter changed
-> destroys all data
-> rendered components are destroyed
-> client still thinks that everything is fine
-> flow-component-renderer doesn't find destroyed component instances
-> components not rendered

Fix #227
@pekam pekam self-assigned this Mar 12, 2019
@pekam pekam requested a review from yuriy-fix March 15, 2019 09:06
@vaadin-bot
Copy link

SonarQube analysis reported 4 issues

Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

  1. CRITICAL ComboBox.java#L139: Make "queue" transient or serializable. rule
  2. CRITICAL ComboBox.java#L333: Define a constant instead of duplicating this literal "value" 3 times. rule
  3. CRITICAL ComboBox.java#L614: Remove usage of generic wildcard type. rule
  4. MINOR ComboBox.java#L957: Move this method into the anonymous class declared at line 172. rule

Copy link
Contributor

@yuriy-fix yuriy-fix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's wait for @bogdanudrescu response on this one.
Otherwise, for me :lgtm:

Reviewed 2 of 3 files at r1, 1 of 1 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@pekam pekam merged commit 1d460f6 into master Mar 18, 2019
@pekam pekam deleted the component-renderer-bug branch March 18, 2019 11:08
pekam added a commit that referenced this pull request Mar 21, 2019
Otherwise, DataProvider will get a new instance of the filter object
-> DataCommunicator thinks filter changed
-> destroys all data
-> rendered components are destroyed
-> client still thinks that everything is fine
-> flow-component-renderer doesn't find destroyed component instances
-> components not rendered

Fix #227
@pekam pekam added this to the 2.1.3 milestone Mar 21, 2019
pekam added a commit that referenced this pull request Mar 21, 2019
Otherwise, DataProvider will get a new instance of the filter object
-> DataCommunicator thinks filter changed
-> destroys all data
-> rendered components are destroyed
-> client still thinks that everything is fine
-> flow-component-renderer doesn't find destroyed component instances
-> components not rendered

Fix #227
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants