Skip to content
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

New Database Trigger Options #611

Merged
merged 36 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
c3fdc3b
testing table formatting
MongoCaleb Oct 16, 2023
584d75f
sanity check
MongoCaleb Oct 16, 2023
fe5d96b
add recursion warning and fix formatting of table
MongoCaleb Oct 16, 2023
e3c565a
more formatting fun
MongoCaleb Oct 16, 2023
985f758
tabs, spaces, indents, oh my
MongoCaleb Oct 16, 2023
7654e99
more formatting...
MongoCaleb Oct 16, 2023
f194b81
change messaging and hopefully fix the table formatting
MongoCaleb Oct 16, 2023
c1de63f
review 1
MongoCaleb Oct 16, 2023
ac536fc
add new operations and mark db and collection names as optional
MongoCaleb Oct 16, 2023
b4a1d27
add to config reference
MongoCaleb Oct 16, 2023
80dc42a
change database->collection
MongoCaleb Oct 16, 2023
29969a3
review change & fix column width
MongoCaleb Oct 16, 2023
90edce6
make more clear which operations for which trigger types
MongoCaleb Oct 16, 2023
54b8333
clean up note and fix indentation
MongoCaleb Oct 16, 2023
4e1d7b5
Merge branch 'master' into DOCSP-33588
MongoCaleb Oct 16, 2023
21dea41
Merge branch 'master' into DOCSP-33588
MongoCaleb Oct 16, 2023
02f7a1b
testing removal of warnings that act like errors
MongoCaleb Oct 16, 2023
124e590
Merge branch 'DOCSP-33588' of github.com:MongoCaleb/docs-app-services…
MongoCaleb Oct 16, 2023
545c72a
final formatting fix
MongoCaleb Oct 16, 2023
4961239
changes after discussion
MongoCaleb Oct 17, 2023
254fb2b
differentiate deployment types for change events
MongoCaleb Oct 17, 2023
aa52585
remove note and make inline
MongoCaleb Oct 17, 2023
14f6370
adjust table width
MongoCaleb Oct 17, 2023
785e508
merge docsp-33274 / PR #612 to sinmplify
MongoCaleb Oct 17, 2023
b76041b
add note about dedicated tiers; fix lists
MongoCaleb Oct 18, 2023
449a077
Merge branch 'master' into DOCSP-33588
MongoCaleb Oct 18, 2023
740c26d
add missing opertation types
MongoCaleb Oct 18, 2023
6d519eb
Merge branch 'DOCSP-33588' of github.com:MongoCaleb/docs-app-services…
MongoCaleb Oct 18, 2023
e6653e0
merge
MongoCaleb Nov 1, 2023
eecdaf4
Merge branch 'master' into DOCSP-33588
MongoCaleb Nov 1, 2023
239d746
merge
MongoCaleb Nov 1, 2023
a0b53cc
re-incorping pre-image ticket and fixing table headings
MongoCaleb Nov 1, 2023
00b7d91
clarifying note about disabled
MongoCaleb Nov 1, 2023
e7fcc05
merge
MongoCaleb Nov 1, 2023
a04195e
remove extra header
MongoCaleb Nov 1, 2023
4366c18
remove _
MongoCaleb Nov 1, 2023
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
31 changes: 22 additions & 9 deletions source/reference/config/triggers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ Database Triggers

Database trigger configurations conform to the base trigger schema with
additional configuration options that specify which collection to watch and when
to fire the trigger. The following fields exist in *database* trigger
configuration files:
to fire the trigger. The following fields exist in *database* and *deployment*
trigger configuration files:

.. code-block:: json
:caption: triggers/<trigger name>.json
Expand Down Expand Up @@ -149,12 +149,28 @@ configuration files:
- A list of one or more :ref:`database operation
types <database-event-operation-types>` that cause the trigger to fire.

Valid operations types:
Valid operations types for all triggers:

- ``"INSERT"``
- ``"UPDATE"``
- ``"REPLACE"``
- ``"DELETE"``

Valid operations types for database and deployment triggers:

- ``"CREATE_COLLECTION"``
- ``"MODIFY_COLLECTION"``
- ``"RENAME_COLLECTION"``
- ``"SHARD_COLLECTION"``
- ``"DROP_COLLECTION"``
- ``"RESHARD_COLLECTION"``
- ``"REFINE_COLLECTION_SHARD_KEY"``
- ``"CREATE_INDEXES"``
- ``"DROP_INDEXES"``

Valid operations types for deployment triggers only:

- ``"DROP_DATABASE"``

.. tip::

Expand All @@ -172,12 +188,9 @@ configuration files:

.. note::

Regardless of this setting:

- ``INSERT`` and ``REPLACE`` events always include the
``fullDocument`` field.

- ``DELETE`` events never include the ``fullDocument`` field.
Regardless of this setting, ``INSERT`` and ``REPLACE`` events always
include the``fullDocument`` field. ``DELETE`` events never include the
``fullDocument`` field.

* - | ``config.full_document_before_change``
| ``boolean``
Expand Down
Loading
Loading