Skip to content

Commit 5fc330c

Browse files
MONGOID-5273 Improvements/fixes to 7.4 release notes (#5247)
Co-authored-by: shields <[email protected]>
1 parent cba261c commit 5fc330c

File tree

1 file changed

+32
-23
lines changed

1 file changed

+32
-23
lines changed

source/release-notes/mongoid-7.4.txt

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ and matches the core Ruby behavior:
134134

135135
.. note::
136136

137-
The value of ``Mongoid.legacy_triple_equals`` option will change to ``false``
138-
by default in Mongoid 8.0.
137+
In Mongoid 8.0, the default value of the ``Mongoid.legacy_triple_equals`` option will
138+
change to ``false``.
139139

140140

141-
Return Hexadecimal ``_id`` Value from ``BSON::ObjectId#as_json``
142-
----------------------------------------------------------------
141+
Return String ``_id`` Value (Hexadecimal) from ``BSON::ObjectId#as_json``
142+
-------------------------------------------------------------------------
143143

144144
Mongoid 7.4 permits configuring the ``BSON::ObjectId#as_json`` method
145145
to return the ``_id`` value as a hexadecimal string instead of the
@@ -176,6 +176,11 @@ The behavior of ``as_json`` is summarized in the following table:
176176
- ``{"$oid"=>"621ed7fda15d5d231594627c"}``
177177
- ``"621ed7fda15d5d231594627c"``
178178

179+
.. note::
180+
181+
In Mongoid 8.0, the default value of the ``Mongoid.object_id_as_json_oid`` option will
182+
change to ``false``.
183+
179184

180185
Scoped Associations
181186
-------------------
@@ -203,8 +208,12 @@ that are already loaded into memory vs queries on unloaded associations and
203208
top-level models.
204209

205210
The ``Mongoid.compare_time_by_ms`` option is set to ``false`` by default
206-
in Mongoid 7.4 for backwards compatibility. In Mongoid 8 the default value
207-
will change to ``true``.
211+
in Mongoid 7.4 for backwards compatibility.
212+
213+
.. note::
214+
215+
In Mongoid 8.0, the default value of the ``Mongoid.compare_time_by_ms`` option will
216+
change to ``true``.
208217

209218

210219
``count``, ``sum``, ``avg``, ``min``, ``max`` Ignore Sort If Not Limiting/Skipping
@@ -237,8 +246,8 @@ set to ``true`` (the default) returns ``nil`` in this case.
237246

238247
.. note::
239248

240-
The value of ``Mongoid.broken_aggregables`` option will change to ``false``
241-
by default in Mongoid 8.0.
249+
In Mongoid 8.0, the default value of the ``Mongoid.broken_aggregables`` option will
250+
change to ``false``.
242251

243252

244253
Correct Update Behavior When Replacing Association
@@ -266,8 +275,8 @@ we would expect it to be ``palette``.
266275

267276
.. note::
268277

269-
The value of ``Mongoid.broken_update`` option will change to ``false``
270-
by default in Mongoid 8.0.
278+
In Mongoid 8.0, the default value of the ``Mongoid.broken_updates`` option will
279+
change to ``false``
271280

272281

273282
Correct Logical ``and`` Query Generation
@@ -307,8 +316,8 @@ generated instead which omit the {"$in" => [2021]} condition:
307316

308317
.. note::
309318

310-
The value of ``Mongoid.broken_and`` option will change to ``false``
311-
by default in Mongoid 8.0.
319+
In Mongoid 8.0, the default value of the ``Mongoid.broken_and`` option will
320+
change to ``false``.
312321

313322

314323
Restore Parent Scope When Exiting ``with_scope`` Block
@@ -344,8 +353,8 @@ all scopes are cleared:
344353

345354
.. note::
346355

347-
The value of ``Mongoid.broken_scoping`` option will change to ``false``
348-
by default in Mongoid 8.0.
356+
In Mongoid 8.0, the default value of the ``Mongoid.broken_scoping`` option will
357+
change to ``false``.
349358

350359

351360
Changes to ``distinct`` and ``pluck``
@@ -396,8 +405,8 @@ Mongoid 7.3 and 7.4 with ``Mongoid.broken_alias_handling`` set to ``true`` behav
396405

397406
.. note::
398407

399-
The value of ``Mongoid.broken_alias_handling`` option will change to ``false``
400-
by default in Mongoid 8.0.
408+
In Mongoid 8.0, the default value of the ``Mongoid.broken_alias_handling`` option will
409+
change to ``false``.
401410

402411

403412
Demongoize Values Returned from ``pluck`` and ``distinct``
@@ -441,8 +450,9 @@ distinct methods will not be demongoized. For example:
441450

442451
.. note::
443452

444-
The value of ``Mongoid.legacy_pluck_distinct`` option will change to ``false``
445-
by default in Mongoid 8.0.
453+
In Mongoid 8.0, the default value of the ``Mongoid.legacy_pluck_distinct`` option will
454+
change to ``false``.
455+
446456

447457
Localized Fields with ``pluck`` and ``distinct``
448458
````````````````````````````````````````````````
@@ -489,8 +499,8 @@ For example:
489499

490500
.. note::
491501

492-
The value of ``Mongoid.legacy_pluck_distinct`` option will change to ``false``
493-
by default in Mongoid 8.0.
502+
In Mongoid 8.0, the default value of the ``Mongoid.legacy_pluck_distinct`` option will
503+
change to ``false``.
494504

495505

496506
Embedded Fields with ``pluck``
@@ -532,6 +542,5 @@ inside a hash. For example:
532542

533543
.. note::
534544

535-
The value of ``Mongoid.legacy_pluck_distinct`` option will change to ``false``
536-
by default in Mongoid 8.0.
537-
545+
In Mongoid 8.0, the default value of the ``Mongoid.legacy_pluck_distinct`` option will
546+
change to ``false``.

0 commit comments

Comments
 (0)