Release Candidate: 9.1.1 - #6177
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The PR description/release announcement text contains an inconsistent version number (9.1.11 vs 9.1.1) that should be corrected before release.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Updates the Mongoid patch release version metadata to prepare the 9.1.1 release candidate in the codebase.
Changes:
- Bump
Mongoid::VERSIONfrom9.1.0to9.1.1. - Update
product.ymlrelease version number to9.1.1.
File summaries
| File | Description |
|---|---|
| product.yml | Updates the product version number to 9.1.1. |
| lib/mongoid/version.rb | Bumps Mongoid::VERSION constant to 9.1.1. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Jibola
approved these changes
Sep 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The MongoDB Ruby team is pleased to announce version 9.1.1 of the
mongoidgem - a Ruby ODM for MongoDB. This is a new patch release in the 9.1.x series of Mongoid.Install this release using RubyGems via the command line as follows:
Or simply add it to your
Gemfile:Have any feedback? Click on through to MongoDB's Jira and open a new ticket to let us know what's on your mind.
Bug Fixes
Bound regular-expression execution time in in-memory queries (MONGOID-5981)
Queries evaluated in memory, such as those against embedded associations, run in the calling thread and can spend an unbounded amount of CPU matching regular expressions. A single in-memory query is now limited by
Mongoid.in_memory_regexp_time_limit(default5.0seconds); exceeding the limit raisesMongoid::Errors::InMemoryRegexpTimeout.Fix encryption schema generation for automatic encryption (MONGOID-5984) (MONGOID-5989)
Automatic encryption schema generation no longer loops on models that embed themselves, and it now handles polymorphic
embeds_onerelations and embedded schemas that carry their ownencryptMetadatacorrectly. A model whose collection has no entry in the generated schema is no longer written without encryption: such a write raisesMongoid::Errors::NoEncryptionSchemainstead of storing the field in plaintext.Resolve nested attribute ids within the caller's association (MONGOID-5992)
An id given in nested attributes is now resolved within the association the attributes are being applied to, rather than falling back to a collection-wide lookup that ignored default scopes. A document that is not part of that association raises
Mongoid::Errors::DocumentNotFound, and a request to destroy a document that is not in the association is ignored. TheMongoid.allow_reparenting_via_nested_attributesoption now defaults tofalse; set it totrueto restore the previous reparenting behavior.Reject the string form of where under the query operator guard (MONGOID-5993)
A String passed to
#whereis sent to MongoDB as a$whereexpression. This now raisesMongoid::Errors::InvalidQuerywhenMongoid.allow_unsafe_query_operatorsisfalse(the default); the string form is allowed only when that option is enabled.Reject JavaScript query operators at any depth (MONGOID-5994)
Mongoid.allow_unsafe_query_operatorsnow defaults tofalse. When it isfalse, the$where,$function, and$accumulatoroperators are rejected anywhere in a query selector. The guard covers every criterion-building method (where,find_by,or,and,nor,not,any_of,none_of, andelem_match) and inspects nested expressions such as{'$expr' => {'$function' => ...}}in full.Other Bug Fixes