-
Notifications
You must be signed in to change notification settings - Fork 29
DOCSP-42772: compatibility #90
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
.. _mongoid-compatibility: | ||
|
||
============= | ||
Compatibility | ||
============= | ||
|
||
.. contents:: On this page | ||
:local: | ||
:backlinks: none | ||
:depth: 2 | ||
:class: singlecol | ||
|
||
.. facet:: | ||
:name: genre | ||
:values: reference | ||
|
||
.. meta:: | ||
:keywords: backwards compatibility, versions, upgrade | ||
|
||
{+language+} Driver Compatibility | ||
------------------------- | ||
|
||
The following compatibility table specifies the versions of the | ||
:ruby:`{+ruby-driver+} </>` that are compatible with each | ||
{+odm+} version. | ||
|
||
.. note:: Patch Version Compatibility | ||
|
||
Older patch versions of {+odm+} within the same minor release might | ||
support older {+ruby-driver+} versions. For example, {+odm+} v7.0.5 | ||
supports {+ruby-driver+} v2.5 and later, but {+odm+} v7.0.6 requires | ||
driver v2.7 or later. | ||
|
||
.. include:: /includes/ruby-driver-compatibility-table-mongoid.rst | ||
|
||
MongoDB Compatibility | ||
--------------------- | ||
|
||
The following compatibility table specifies the recommended version or versions | ||
of {+odm+} that you can use with a specific version of MongoDB. To use | ||
features of a particular MongoDB Server version, both the | ||
{+ruby-driver+} and {+odm+} must be compatible with that MongoDB | ||
version. To learn about the driver's MongoDB compatibility details, | ||
see :ruby:`Compatibility </reference/driver-compatibility/>` | ||
in the {+ruby-driver+} documentation. | ||
|
||
The first column lists the version of {+odm+}. | ||
|
||
.. sharedinclude:: dbx/lifecycle-schedule-callout.rst | ||
|
||
.. sharedinclude:: dbx/compatibility-table-legend.rst | ||
|
||
.. include:: /includes/mongodb-compatibility-table-mongoid.rst | ||
|
||
To learn more about how to read the compatibility tables, see the guide | ||
on :ref:`MongoDB Compatibility Tables <about-driver-compatibility>`. | ||
|
||
Language Compatibility | ||
---------------------- | ||
|
||
The following compatibility table specifies the recommended version or | ||
versions of {+odm+} that you can use with specific {+language+} | ||
interpreter versions. | ||
|
||
The first column lists the version of {+odm+}. | ||
|
||
.. include:: /includes/language-compatibility-table-mongoid.rst | ||
|
||
To learn more about how to read the compatibility tables, see the guide | ||
on :ref:`MongoDB Compatibility Tables <about-driver-compatibility>`. | ||
|
||
{+ror+} Compatibility | ||
--------------------------- | ||
|
||
The following compatibility table specifies which versions of {+ror+} | ||
are supported by {+odm+}. | ||
|
||
.. include:: /includes/rails-compatibility-table-mongoid.rst | ||
|
||
Rails Frameworks Support | ||
~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
{+odm+} is compatible with many of the frameworks that comprise {+ror+}. | ||
In this section, you can learn about which frameworks you can use with {+odm+}. | ||
|
||
{+odm+} attempts to offer API compatibility with `Active Record | ||
<{+active-record-docs+}/active_record_basics.html>`__, but libraries | ||
that depend directly on Active Record might not work as expected if you | ||
use {+odm+} as a direct replacement. | ||
|
||
.. note:: | ||
|
||
You can use {+odm+} alongside Active Record within the same | ||
application. | ||
|
||
.. include:: /includes/ror-compatibility-table-mongoid.rst | ||
|
||
How to Get Help | ||
--------------- | ||
|
||
If you have questions about compatibility, visit the following resources | ||
for further guidance: | ||
|
||
- Ask questions on our :community-forum:`MongoDB Community Forums <>`. | ||
- Visit the :technical-support:`Support Channels </>`. | ||
- File an issue or feature request in Jira, our issue tracker. You can | ||
find instructions on filing a ticket on the | ||
:ref:`mongoid-issues-and-help` page. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.. list-table:: | ||
:header-rows: 1 | ||
:stub-columns: 1 | ||
:class: compatibility-large | ||
|
||
* - {+odm+} Version | ||
- {+language+} 3.2 | ||
- {+language+} 3.1 | ||
- {+language+} 3.0 | ||
- {+language+} 2.7 | ||
- {+language+} 2.6 | ||
- {+language+} 2.5 | ||
- J{+language+} 9.4 | ||
- J{+language+} 9.3 | ||
- J{+language+} 9.2 | ||
|
||
* - 9.0 | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
- | ||
- | ||
- ✓ | ||
- | ||
- | ||
|
||
* - 8.1 | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
- | ||
- | ||
- ✓ | ||
- | ||
|
||
* - 8.0 | ||
- | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
- | ||
- | ||
- ✓ | ||
- |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. list-table:: | ||
:header-rows: 1 | ||
:stub-columns: 1 | ||
:class: compatibility-large | ||
|
||
* - {+odm+} Version | ||
- MongoDB 8.0 | ||
- MongoDB 7.0 | ||
- MongoDB 6.0 | ||
- MongoDB 5.0 | ||
- MongoDB 4.4 | ||
- MongoDB 4.2 | ||
- MongoDB 4.0 | ||
- MongoDB 3.6 | ||
|
||
* - 9.0 | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
|
||
* - 8.0 to 8.1 | ||
- | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
- ✓ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.. list-table:: | ||
:header-rows: 1 | ||
:stub-columns: 1 | ||
:class: compatibility-large no-padding | ||
|
||
* - {+odm+} Version | ||
- Rails 8.0 | ||
- Rails 7.2 | ||
- Rails 7.1 | ||
- Rails 7.0 | ||
- Rails 6.1 | ||
- Rails 6.0 | ||
- Rails 5.2 | ||
- Rails 5.1 | ||
|
||
* - 9.0 | ||
- ✓ [#rails-8.0]_ | ||
- ✓ [#rails-7.2]_ | ||
- ✓ [#rails-7.1]_ | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
- | ||
- | ||
|
||
* - 8.1 | ||
- ✓ [#rails-8.0]_ | ||
- ✓ [#rails-7.2]_ | ||
- ✓ [#rails-7.1]_ | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
- ✓ [#rails-5-ruby-3.0]_ | ||
- | ||
|
||
* - 8.0 | ||
- | ||
- | ||
- ✓ [#rails-7.1]_ | ||
- ✓ | ||
- ✓ | ||
- ✓ | ||
- ✓ [#rails-5-ruby-3.0]_ | ||
- | ||
|
||
.. [#rails-8.0] Rails 8.0 requires {+odm+} v8.1.7 and v9.0.3 in the respective 8.1 and 9.0 stable branches. | ||
|
||
.. [#rails-7.2] Rails 7.2 requires {+odm+} v8.1.6 and v9.0.2 in the respective 8.1 and 9.0 stable branches. | ||
|
||
.. [#rails-7.1] Rails 7.1 requires {+odm+} v8.0.7 or v8.1.3 in the respective 8.0 and 8.1 stable branches. | ||
|
||
.. [#rails-5-ruby-3.0] Using Rails 5.x with Ruby 3 is not supported. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
.. list-table:: | ||
:header-rows: 1 | ||
:stub-columns: 1 | ||
:class: compatibility-large | ||
|
||
* - Rails Framework | ||
- {+odm+} Support | ||
|
||
* - ``ActionCable`` | ||
rustagir marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- | ✓ | ||
| There is no MongoDB adapter for ``ActionCable``, but you can | ||
use any existing adapter, such as the `Redis Adapter | ||
<{+active-record-docs+}/action_cable_overview.html#redis-adapter>`__, | ||
alongside {+odm+} models. | ||
* - ``ActionMailbox`` | ||
- | *Unsupported* | ||
| Depends directly on Active Record. | ||
* - ``ActionMailer`` | ||
- ✓ | ||
|
||
* - ``ActionPack`` | ||
- ✓ | ||
|
||
* - ``ActionText`` | ||
- | *Unsupported* | ||
| Depends directly on Active Record. | ||
* - ``ActionView`` | ||
- ✓ | ||
|
||
* - ``ActiveJob`` | ||
- | ✓ | ||
| Serialization of BSON and {+odm+} objects works best if you | ||
explicitly send ``BSON::ObjectId`` values as strings, and | ||
reconstitute them in the job, as shown in the following code: | ||
.. code-block:: ruby | ||
record = Model.find(...) | ||
MyJob.perform_later(record._id.to_s) | ||
class MyJob < ApplicationJob | ||
def perform(id_as_string) | ||
record = Model.find(id_as_string) | ||
# ... | ||
end | ||
end | ||
rustagir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
* - ``ActiveModel`` | ||
- | ✓ | ||
| The ``Mongoid::Document`` module includes | ||
``ActiveModel::Model`` and leverages ``ActiveModel::Validations`` | ||
for :ref:`mongoid-modeling-validation`. | ||
* - ``ActiveStorage`` | ||
- | *Unsupported* | ||
| Depends directly on Active Record. | ||
* - ``ActiveSupport`` | ||
- | ✓ | ||
| The ``Mongoid`` module requires ``ActiveSupport``. | ||
``Mongoid`` uses ``ActiveSupport::TimeWithZone`` for handling | ||
time values. |
14 changes: 14 additions & 0 deletions
14
source/includes/ruby-driver-compatibility-table-mongoid.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.. list-table:: | ||
:header-rows: 1 | ||
:stub-columns: 1 | ||
:class: compatibility-large | ||
|
||
* - {+odm+} Version | ||
- {+ruby-driver+} 2.18 to 2.21 | ||
rustagir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
- {+ruby-driver+} 2.10 to 2.17 | ||
- {+ruby-driver+} 2.7 to 2.9 | ||
|
||
* - 8.0 to 9.0 | ||
- ✓ | ||
- | ||
- |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.