Skip to content

Prep for 8.0.9#5943

Merged
jamis merged 2 commits intomongodb:8.0-stablefrom
jamis:prep-8.0.9
Jan 29, 2025
Merged

Prep for 8.0.9#5943
jamis merged 2 commits intomongodb:8.0-stablefrom
jamis:prep-8.0.9

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
3 of 29 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