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

Prep for 8.0.9 #5943

Merged
merged 2 commits into from
Jan 29, 2025
Merged

Prep for 8.0.9 #5943

merged 2 commits into from
Jan 29, 2025

Conversation

jamis
Copy link
Contributor

@jamis jamis commented Jan 27, 2025

Proposed release announcement:

Mongoid 8.0.9 is now available. This is the most recent patch release in the 8.0 series, and includes the following bug fixes.

  • MONGOID-5836 - Callbacks were being duplicated on deeply embedded children. A related issue (MONGOID-5542) was also backported to 8.0, exposing the Mongoid.prevent_multiple_calls_of_embedded_callbacks setting to preserve backwards compatibility in most cases (defaults to false).
  • MONGOID-5757 - Child validations were being short-circuited, resulting in subsequent validation callbacks not being called after the first failing validation.
  • MONGOID-5797 - Accessing the parent document from an embedded document was failing with an error when the original query applied a projection.
  • MONGOID-5810 - When Mongoid.legacy_attributes is true, the #as_document method was returning a hash that leaked internal model state. The hash is now deep-duplicated before being returned (which may have performance implications for large documents or complex hashes).
  • MONGOID-5839 - When using single-collection inheritance, eager loading (with #includes) was not producing the correct query when the root of the query was the document subclass.
  • MONGOID-5825 - The Mongoid::Timestamps module would (in certain cases) attempt to timestamp deleted documents, which resulted in a FrozenError being raised.

@jamis jamis requested a review from comandeo-mongo January 27, 2025 23:31
@jamis jamis merged commit f49d011 into mongodb:8.0-stable Jan 29, 2025
4 of 67 checks passed
@jamis jamis deleted the prep-8.0.9 branch January 29, 2025 17:45
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