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

MONGOID-5757 Fix validation checks so that all associated records are validated #5882

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

jamis
Copy link
Contributor

@jamis jamis commented Oct 14, 2024

(Backporting #5881 from master to 9.0-stable.)

Changes made for MONGOID-5704 introduced a regression that caused associated validations to stop after the first failure, rather than validating all associated records. This PR corrects the regression by fixing the short-circuited evaluation that was introduced in that earlier PR.

…ongodb#5881)

It was previously stopping at the first failed validation.
@jamis jamis merged commit 560ce66 into mongodb:9.0-stable Oct 21, 2024
61 checks passed
@jamis jamis deleted the 5757-validations-9.0 branch October 21, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants