Skip to content

update css warning box color and remove bottom border for table within an admonition #917

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions source/reference/command/group.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,10 @@ group

.. warning::

The :dbcommand:`group` command does not work with :term:`sharded
clusters <sharded cluster>`. Use the :term:`aggregation
framework` or :term:`map-reduce` in :term:`sharded environments
<sharding>`.

.. note::
- The :dbcommand:`group` command does not work with
:term:`sharded clusters <sharded cluster>`. Use the
:term:`aggregation framework` or :term:`map-reduce` in
:term:`sharded environments <sharding>`.

- The result set must fit within the :ref:`maximum BSON document
size <limit-bson-document-size>`.
Expand All @@ -84,16 +82,18 @@ group
groupings, use :dbcommand:`mapReduce`. Previous versions had a
limit of 10,000 elements.

- Prior to 2.4, the :dbcommand:`group` command took the
:program:`mongod` instance's JavaScript lock which blocked
all other JavaScript execution.

.. note::

.. putting the blank line between the version changed directive
since the directive cannot seem to handle the include or the
list at all
.. versionchanged:: 2.4

- .. include:: /includes/fact-group-map-reduce-where-limitations-in-24.rst

- Prior to 2.4, the :dbcommand:`group` command took the
:program:`mongod` instance's JavaScript lock, which blocked
all other JavaScript execution.
.. include:: /includes/fact-group-map-reduce-where-limitations-in-24.rst

For the shell, MongoDB provides a wrapper method
:method:`db.collection.group()`; however, the
Expand Down
21 changes: 10 additions & 11 deletions source/reference/method/db.collection.group.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,30 +52,29 @@ db.collection.group()

.. warning::

The :method:`db.collection.group()` method does not work with
:term:`sharded clusters <sharded cluster>`. Use the
:term:`aggregation framework` or :term:`map-reduce` in
:term:`sharded environments <sharding>`.
- The :method:`db.collection.group()` method does not work with
:term:`sharded clusters <sharded cluster>`. Use the
:term:`aggregation framework` or :term:`map-reduce` in
:term:`sharded environments <sharding>`.

.. note::

- The result set must fit within the :ref:`maximum BSON document
size <limit-bson-document-size>`.

- In version 2.2, the returned array can contain at most 20,000
elements; i.e. at most 20,000 unique groupings. For group by
operations that results in more than 20,000 unique groupings,
use :dbcommand:`mapReduce`. Previous versions had a limit of
10,000 elements.

.. versionchanged:: 2.4

- .. include:: /includes/fact-group-map-reduce-where-limitations-in-24.rst

- Prior to 2.4, the :method:`db.collection.group()` method took
the :program:`mongod` instance's JavaScript lock, which blocked
all other JavaScript execution.

.. note::
.. versionchanged:: 2.4

.. include:: /includes/fact-group-map-reduce-where-limitations-in-24.rst

Consider the following examples of the :method:`db.collection.group()` method:

The examples assume an ``orders`` collection with documents of the
Expand Down
6 changes: 5 additions & 1 deletion themes/mongodb/static/mongodb-docs.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ div.seealso {
}

div.warning {
background-color: #FEEFB3;
background-color: #eebbaa;
border: 1px solid #cd0a0a;
padding:.5em 1em;
}

Expand Down Expand Up @@ -800,6 +801,9 @@ div#btnv ul#btnvl {
text-align: center;
}

div.admonition.note table.docutils tr:last-child td {
border-bottom: 0;
}
/*
div#btnv ul#btnvl li { border-top: solid 1pt #402817; }
div#btnv ul#btnvl li { border-bottom: solid 1pt #402817; }
Expand Down