Skip to content
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: remove clear condition for hierarchical data (#15282) (CP: 9.0) #15308

Merged
merged 1 commit into from
Nov 29, 2022

Conversation

vaadin-bot
Copy link
Collaborator

No description provided.

For hierarchical data, even when the child components are filtered out, the clear method on ArrayUpdater.Update in HierarchicalCommunicationController is never called. This is caused by an if check, in which the start index of previousActive is compared to the newly calculated assumedSize. Since there might be items to clear, the newly calculated size should have no effect on whether we clear the items or not. This check is not present in the DataCommunicator counterpart within the method collectChangesToSend.

This PR removes the aforementioned clear condition. Add test to ensure that the expanded children are cleared properly when filtered out.

Fixes #4132
@vaadin-bot
Copy link
Collaborator Author

This PR is eligible for auto-merging policy, so it has been approved automatically. If there are pending conditions, auto merge (with 'squash' method) has been enabled for this PR[Message is sent from bot]

@vaadin-bot vaadin-bot enabled auto-merge (squash) November 29, 2022 10:17
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link

Unit Test Results

   777 files  ±0     777 suites  ±0   29m 44s ⏱️ -9s
5 775 tests +1  5 724 ✔️ +1  51 💤 ±0  0 ±0 
5 826 runs  +1  5 774 ✔️ +1  52 💤 ±0  0 ±0 

Results for commit f193767. ± Comparison against base commit 7b7ff9e.

@vaadin-bot vaadin-bot merged commit f348704 into 9.0 Nov 29, 2022
@vaadin-bot vaadin-bot deleted the cherry-pick-15282-to-9.0-1669716295541 branch November 29, 2022 10:48
@vaadin-bot
Copy link
Collaborator Author

This ticket/PR has been released with Vaadin 22.0.25.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants