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

Validation fixes (#18535) (CP: 24.2) #18544

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

vaadin-bot
Copy link
Collaborator

No description provided.

Changes:

- Once Binder.handleFieldValueChange runs for a binding when readBean was used, the whole binder will be silently validated also. BinderValidationStatusHandler is called like before (only contains status from changed binding), but StatusChangeEvent is now fired considering all bindings and if possible bean validators as well.
- Once Binder.handleFieldValueChange runs for a binding when setBean was used, doWriteIfValid will validate all bindings, not only the changed ones. This prevents writing an invalid bean in cases where one or more of the initial values are in invalid state (but not marked as such since setBean resets validation status), but they have not been changed from their initial value(s).
 Calling setAsRequiredEnabled with a changed value no longer triggers validation, since that validation is now handled elsewhere when needed as stated above.

Minor Javadoc fixes, trying to align Javadocs with code.

Fixes #18163
Fixes #4988
Fixes #17515
@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) January 26, 2024 12:04
Copy link

sonarcloud bot commented Jan 26, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

github-actions bot commented Jan 26, 2024

Test Results

1 013 files  ± 0  1 013 suites  ±0   1h 7m 49s ⏱️ + 2m 31s
6 504 tests + 2  6 463 ✅ + 3  41 💤 ±0  0 ❌  - 1 
6 763 runs  +19  6 715 ✅ +20  48 💤 ±0  0 ❌  - 1 

Results for commit e35a3e9. ± Comparison against base commit 2f081dd.

♻️ This comment has been updated with latest results.

@vaadin-bot vaadin-bot merged commit cddc27a into 24.2 Jan 26, 2024
25 of 26 checks passed
@vaadin-bot vaadin-bot deleted the cherry-pick-18535-to-24.2-1706270291158 branch January 26, 2024 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants