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-5836 Don't repeat callbacks for embedded grandchildren (backport to 8.1-stable) #5936

Open
wants to merge 1 commit into
base: 8.1-stable
Choose a base branch
from

Conversation

jamis
Copy link
Contributor

@jamis jamis commented Jan 15, 2025

(Backport to 8.1-stable)

Grandchildren are already accounted for when this is invoked, because if called when callbacks are cascading, the input is the full list of all children and grandchildren. Processing grandchildren recursively here causes them to be processed twice.

  • specify python version to address failing mongo-orchestration

  • make sure we don't break update callbacks

…odb#5933)

* MONGOID-5836 don't explicitly process grandchildren

Grandchildren are already accounted for when this is invoked,
because if called when callbacks are cascading, the input is
the full list of all children and grandchildren. Processing
grandchildren recursively here causes them to be processed twice.

* specify python version to address failing mongo-orchestration

* make sure we don't break update callbacks
@jamis jamis requested a review from comandeo-mongo January 15, 2025 22:14
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.

1 participant