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 #5881

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

jamis
Copy link
Contributor

@jamis jamis commented Oct 11, 2024

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.

It was previously stopping at the first failed validation.
@jamis jamis merged commit 9277554 into mongodb:master Oct 14, 2024
61 checks passed
@jamis jamis deleted the 5757-embedded-validations branch October 14, 2024 21:00
jamis added a commit to jamis/mongoid that referenced this pull request Oct 14, 2024
…ongodb#5881)

It was previously stopping at the first failed validation.
jamis added a commit to jamis/mongoid that referenced this pull request Oct 14, 2024
…ongodb#5881)

It was previously stopping at the first failed validation.
jamis added a commit to jamis/mongoid that referenced this pull request Oct 14, 2024
…ongodb#5881)

It was previously stopping at the first failed validation.
jamis added a commit that referenced this pull request Oct 21, 2024
… validated (#5884)

* Fix validation checks so that all associated records are validated (#5881)

It was previously stopping at the first failed validation.

* fix test failures

* more failing specs
jamis added a commit that referenced this pull request Oct 21, 2024
…5881) (#5882)

It was previously stopping at the first failed validation.
jamis added a commit that referenced this pull request Oct 21, 2024
…5881) (#5883)

It was previously stopping at the first failed validation.
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