Skip to content

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 requested a review from comandeo-mongo October 11, 2024 17:05
@jamis jamis merged commit 9277554 into mongodb:master Oct 14, 2024
17 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.
@jamis jamis added the bug Fixes a bug, with no new features or broken compatibility label Apr 10, 2025
@jamis jamis mentioned this pull request Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes a bug, with no new features or broken compatibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants