Skip to content

Commit 6732b73

Browse files
authored
DOCSP-25351 EOL Version Cleanup for Aggregation (#1891) (#1923)
* DOCSP-25351 Cleans version references on $merge * DOCSP-25351 Cleans references in $out * DOCSP-25351 Cleans references in $sample * DOCSP-25351 Cleans references in $unwind * DOCSP-25351 Cleans references in $lookup * DOCSP-25351 Cleans references in $currentOp * DOCSP-25351 Cleans references in $dateFromParts and $dateFromString * DOCSP-25351 Cleans EOL version references" * DOCSP-25351 Fixes per Jocelyn * DOCSP-25351 Fixes per Jocelyn * DOCSP-25351 Fixes per Kyle Suarz * DOCSP-25351 Fixes per Kyle Suarz * DOCSP-25351 Fixes per Kyle Suarz * DOCSP-25351 Fixes per Kyle Suarz * DOCSP-25351 Fixes per Kyle Suarz * DOCSP-25351 Fixes per Kyle Suarz * DOCSP-25351 Fixes per Kyle Suarz * DOCSP-25223 Fixes per Kyle Suarz
1 parent 0fff07a commit 6732b73

24 files changed

+27
-121
lines changed

source/reference/operator/aggregation/convert.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ Definition
2020

2121
.. expression:: $convert
2222

23-
.. versionadded:: 4.0
24-
2523
Converts a value to a specified type.
2624

2725
:expression:`$convert` has the following syntax:

source/reference/operator/aggregation/currentOp.txt

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ Syntax
142142

143143
Defaults to ``true``.
144144

145-
.. versionadded:: 4.0
146-
147145
* - :ref:`localOps <currentOp-stage-localOps>`
148146

149147
- .. _currentOp-stage-localOps:
@@ -161,8 +159,6 @@ Syntax
161159

162160
Defaults to ``false``.
163161

164-
.. versionadded:: 4.0
165-
166162
* - :ref:`backtrace <currentOp-stage-backtrace>`
167163

168164
- .. _currentOp-stage-backtrace:
@@ -199,7 +195,6 @@ Pipeline
199195

200196
- :pipeline:`$currentOp` must be the first stage in the pipeline.
201197

202-
203198
- Pipelines that start with :pipeline:`$currentOp` can only be run on
204199
the ``admin`` database.
205200

@@ -979,17 +974,13 @@ relevant for the operation:
979974
Only present if the operation is part of a multi-document
980975
transaction.
981976

982-
.. versionadded:: 4.0
983-
984977
.. data:: $currentOp.transaction.parameters.txnNumber
985978

986979
The transaction number.
987980

988981
Only present if the operation is part of a multi-document
989982
transaction.
990983

991-
.. versionadded:: 4.0
992-
993984
.. data:: $currentOp.transaction.parameters.autocommit
994985

995986
A boolean flag that indicates if autocommit is on for the
@@ -998,8 +989,6 @@ relevant for the operation:
998989
Only present if the operation is part of a multi-document
999990
transaction.
1000991

1001-
.. versionadded:: 4.0.2
1002-
1003992
.. data:: $currentOp.transaction.parameters.readConcern
1004993

1005994
The :ref:`read concern <transactions-read-concern>` for the
@@ -1012,8 +1001,6 @@ relevant for the operation:
10121001
Only present if the operation is part of a multi-document
10131002
transaction.
10141003

1015-
.. versionadded:: 4.0.2
1016-
10171004
.. data:: $currentOp.transaction.globalReadTimestamp
10181005

10191006
The timestamp of the snapshot read by the operations in the
@@ -1047,17 +1034,13 @@ relevant for the operation:
10471034
Instead, :data:`$currentOp.transaction.globalReadTimestamp` is
10481035
returned.
10491036

1050-
.. versionadded:: 4.0.2
1051-
10521037
.. data:: $currentOp.transaction.startWallClockTime
10531038

10541039
The date and time (with time zone) of the transaction start.
10551040

10561041
Only present if the operation is part of a multi-document
10571042
transaction.
10581043

1059-
.. versionadded:: 4.0.2
1060-
10611044
.. data:: $currentOp.transaction.timeOpenMicros
10621045

10631046
The duration, in microseconds, for the transaction.
@@ -1071,8 +1054,6 @@ relevant for the operation:
10711054
Only present if the operation is part of a multi-document
10721055
transaction.
10731056

1074-
.. versionadded:: 4.0.2
1075-
10761057
.. data:: $currentOp.transaction.timeActiveMicros
10771058

10781059
The total amount of time that the transaction has been active;
@@ -1088,8 +1069,6 @@ relevant for the operation:
10881069
Only present if the operation is part of a multi-document
10891070
transaction.
10901071

1091-
.. versionadded:: 4.0.2
1092-
10931072
.. data:: $currentOp.transaction.timeInactiveMicros
10941073

10951074
The total amount of time that the transaction has been
@@ -1175,8 +1154,6 @@ relevant for the operation:
11751154
Only present if the operation is part of a multi-document
11761155
transaction.
11771156

1178-
.. versionadded:: 4.0.2
1179-
11801157

11811158
.. data:: $currentOp.op
11821159

source/reference/operator/aggregation/dateFromParts.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ Definition
188188
:ref:`aggregation-expressions`.
189189

190190
.. |outofrange| replace::
191-
Starting in MongoDB 4.0, if the number specified is outside this
192-
range, :expression:`$dateFromParts` incorporates the difference in
193-
the date calculation. See :ref:`dateFromParts-values` for examples.
191+
If the number specified is outside this range, :expression:`$dateFromParts`
192+
incorporates the difference in the date calculation.
193+
See :ref:`dateFromParts-values` for examples.
194194

195195
.. |outofrange-4.4| replace::
196196
If the number specified is outside this range,
@@ -211,10 +211,10 @@ Starting in MongoDB 4.4, the supported value range for ``year`` and
211211
bound for these values was ``0`` and the supported value range was
212212
``0-9999``.
213213

214-
Starting in MongoDB 4.0, if the value specified for fields other than
215-
``year``, ``isoWeekYear``, and ``timezone`` is outside the valid range,
216-
:expression:`$dateFromParts` carries or subtracts the difference from
217-
other date parts to calculate the date.
214+
If the value specified for fields other than ``year``, ``isoWeekYear``,
215+
and ``timezone`` is outside the valid range, :expression:`$dateFromParts`
216+
carries or subtracts the difference from other date parts to calculate
217+
the date.
218218

219219
Value is Greater than the Range
220220
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

source/reference/operator/aggregation/dateFromString.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ Definition
6161
If unspecified, :expression:`$dateFromString` uses
6262
``"%Y-%m-%dT%H:%M:%S.%LZ"`` as the default format.
6363

64-
.. versionadded:: 4.0
65-
6664
* - ``timezone``
6765

6866
- Optional. The time zone to use to format the date.

source/reference/operator/aggregation/dateToString.txt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,6 @@ Definition
5858
If unspecified, :expression:`$dateToString` uses
5959
``"%Y-%m-%dT%H:%M:%S.%LZ"`` as the default format.
6060

61-
.. versionchanged:: 4.0
62-
63-
The ``format`` field is optional if
64-
``featureCompatibilityVersion`` (fCV) is set to ``"4.0"`` or
65-
greater. For more information on fCV, see
66-
:dbcommand:`setFeatureCompatibilityVersion`.
67-
6861
* - ``timezone``
6962

7063
- .. include:: /includes/fact-timezone-description.rst
@@ -78,12 +71,6 @@ Definition
7871
If unspecified, :expression:`$dateToString` returns null if the
7972
``date`` is null or missing.
8073

81-
.. versionadded:: 4.0
82-
83-
Requires ``featureCompatibilityVersion`` (fCV) set to
84-
``"4.0"`` or greater. For more information on fCV, see
85-
:dbcommand:`setFeatureCompatibilityVersion`.
86-
8774
.. seealso::
8875

8976
- :expression:`$toString`

source/reference/operator/aggregation/geoNear.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ Definition
9292
``2d`` index and/or only one ``2dsphere`` index, MongoDB looks first
9393
for a ``2d`` index to use. If a ``2d`` index does not exists, then
9494
MongoDB looks for a ``2dsphere`` index to use.
95-
96-
.. versionadded:: 4.0
9795

9896
* - ``maxDistance``
9997

@@ -428,8 +426,6 @@ The aggregation returns a document with:
428426
Specify Which Geospatial Index to Use
429427
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
430428

431-
.. versionadded:: 4.0
432-
433429
Consider a ``places`` collection that has a :doc:`2dsphere
434430
</core/2dsphere>` index on the ``location`` field and a
435431
:doc:`2d </core/2d>` index on the ``legacy`` field.

source/reference/operator/aggregation/lookup.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ See these examples:
131131
Join Conditions and Subqueries on a Joined Collection
132132
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
133133

134-
MongoDB 3.6 adds support for:
134+
MongoDB supports:
135135

136136
- Executing a pipeline on a joined collection.
137137

@@ -742,17 +742,15 @@ The operation returns these documents:
742742
Perform Multiple Joins and a Correlated Subquery with ``$lookup``
743743
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
744744

745-
.. versionchanged:: 3.6
746-
747-
MongoDB 3.6 adds support for executing a pipeline on a joined collection
748-
and allows multiple join conditions.
745+
Pipelines can execute on a joined collection and include multiple join
746+
conditions.
749747

750748
A join condition can reference a field in the local collection on which
751749
the :method:`~db.collection.aggregate()` method was run and reference a
752750
field in the joined collection. This allows a correlated subquery
753751
between the two collections.
754752

755-
MongoDB 5.0 also supports :ref:`concise correlated subqueries
753+
MongoDB 5.0 supports :ref:`concise correlated subqueries
756754
<lookup-concise-correlated-subquery>`.
757755

758756
Create a collection ``orders`` with these documents:

source/reference/operator/aggregation/ltrim.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ Definition
1515

1616
.. expression:: $ltrim
1717

18-
.. versionadded:: 4.0
19-
2018
Removes whitespace characters, including null, or the specified
2119
characters from the beginning of a string.
2220

source/reference/operator/aggregation/merge.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ Definition
2828

2929
.. pipeline:: $merge
3030

31-
.. versionadded:: 4.2
32-
3331
Writes the results of the :doc:`aggregation pipeline
3432
</core/aggregation-pipeline>` to a specified collection. The
3533
:pipeline:`$merge` operator must be the **last** stage in the
@@ -688,9 +686,6 @@ results of the aggregation pipeline to a collection:
688686
* - :pipeline:`$merge`
689687
- :pipeline:`$out`
690688

691-
* - - Available starting in MongoDB 4.2
692-
- - Available starting in MongoDB 2.6
693-
694689
* - - Can output to a collection in the same or different database.
695690
- - Can output to a collection in the same or, starting in
696691
MongoDB 4.4, different database.

source/reference/operator/aggregation/out.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ following summarizes the capabilities of the two stages:
101101

102102
* - :pipeline:`$out`
103103
- :pipeline:`$merge`
104-
* - - Available starting in MongoDB 2.6
105-
- - Available starting in MongoDB 4.2
106104
* - - Can output to a collection in the same or, starting in
107105
MongoDB 4.4, different database.
108106
- - Can output to a collection in the same or different database.

0 commit comments

Comments
 (0)