Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

MONGOID-5822: Embedded association validations break when association depends on parent update (backport for 8.1) #5924

Conversation

DarshanaVenkatesh
Copy link
Contributor

MONGOID-5822

In the case where there is an association with validation dependent on a parent condition, the document is not marked as invalid if the parent update results in an invalid association unless there was also a change in the child.

@DarshanaVenkatesh DarshanaVenkatesh changed the base branch from master to 8.1-stable December 18, 2024 18:43
@EduardoRSeifert
Copy link

EduardoRSeifert commented Dec 31, 2024

just so you guys know: i tried to monkey patch this in and i'm getting an infinite loop. i still haven't been able to track down why, exactly, however

Edit: doesn't seem to happen on 9.0, so please ignore this message

@DarshanaVenkatesh DarshanaVenkatesh merged commit 2746d4c into mongodb:8.1-stable Jan 15, 2025
42 of 58 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants