Skip to content

Release candidate for 9.0.11#6139

Merged
jamis merged 1 commit intomongodb:9.0-stablefrom
jamis:rc-9.0.11
Apr 27, 2026
Merged

Release candidate for 9.0.11#6139
jamis merged 1 commit intomongodb:9.0-stablefrom
jamis:rc-9.0.11

Conversation

@jamis
Copy link
Copy Markdown
Contributor

@jamis jamis commented Apr 24, 2026

The MongoDB Ruby team is pleased to announce version 9.0.11 of the mongoid gem - a Ruby ODM for MongoDB. This is a new patch release in the 9.0.x series of Mongoid.

Install this release using RubyGems via the command line as follows:

gem install -v 9.0.11 mongoid

Or simply add it to your Gemfile:

gem 'mongoid', '9.0.11'

Have any feedback? Click on through to MongoDB's JIRA and open a new ticket to let us know what's on your mind 🧠.

New Features

MONGOID-5930 Add Mongoid::Config.allow_reparenting_via_nested_attributes (PR)

Add Mongoid::Config.allow_reparenting_via_nested_attributes, defaulting to true. When false, this prevents dependent has_many records from being reparented via use of nested attributes. When true, records may be reparented via nested attributes.

This setting will default to false in Mongoid 9.1, and will be removed in Mongoid 10.

MONGOID-5751 avoid unnecessary autosaves of unchanged subtrees (PR)

The legacy behavior of associations with autosave: true resulted in all #save being invoked on all children of those associations, whether those children actually needed it or not. All corresponding after_save hooks were invoked as well, recursively, clear to the bottom of the autosave tree.

This PR adds an option to change this behavior, ensuring that subtrees are only autosaved if there are any changed documents in the subtree.

Mongoid.autosave_saves_unchanged_documents = true

The default is true, allowing the legacy behavior to prevail. If your program depends on this legacy behavior, you are encouraged to rewrite the affected code and set the value to false. The default value of this option will be false in Mongoid 9.1, and will go away in Mongoid 10. At that point the legacy autosave behavior will be removed.

Other New Features

Copilot AI review requested due to automatic review settings April 24, 2026 16:41
@jamis jamis requested a review from a team as a code owner April 24, 2026 16:41
@jamis jamis added the release-candidate The PR represents a potential candidate for a new release label Apr 24, 2026
@jamis jamis requested a review from comandeo-mongo April 24, 2026 16:41
@jamis jamis added the release-candidate The PR represents a potential candidate for a new release label Apr 24, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Bumps Mongoid’s patch version to cut the 9.0.11 release candidate.

Changes:

  • Update release metadata version in product.yml to 9.0.11.
  • Update Mongoid::VERSION constant to 9.0.11.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
product.yml Updates the published product/version metadata to 9.0.11.
lib/mongoid/version.rb Updates the gem’s runtime VERSION constant to 9.0.11.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jamis jamis merged commit 651cdfc into mongodb:9.0-stable Apr 27, 2026
80 of 90 checks passed
@jamis jamis deleted the rc-9.0.11 branch April 27, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-candidate The PR represents a potential candidate for a new release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants