-
Notifications
You must be signed in to change notification settings - Fork 43
DOCSP-15810: update changestream page to use new feature + cleanup #407
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
DOCSP-15810: update changestream page to use new feature + cleanup #407
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few small things! looks good otherwise.
An update operation on the collection should produce output similar to the | ||
following text: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S: The text you deleted looks fine to me. Otherwise:
An update operation on the collection should produce output similar to the | |
following text: | |
An update operation on the collection produces the following output: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed everywhere
- The **pre-image**, which is a document that represents the version of the | ||
document before the operation, if it exists | ||
- The **post-image**, which is a document that represents the version of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S: Sounds lighter and cleaner to omit "which is"
- The **pre-image**, which is a document that represents the version of the | |
document before the operation, if it exists | |
- The **post-image**, which is a document that represents the version of the | |
- The **pre-image**, a document that represents the version of the | |
document before the operation, if it exists | |
- The **post-image**, a document that represents the version of the |
must connect to a deployment running MongoDB v6.0 or later and perform the | ||
following actions: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S: This sentence is a little hard to parse. Could we move the version info to an admonition or something?
must connect to a deployment running MongoDB v6.0 or later and perform the | |
following actions: | |
must perform perform the following actions on your MongoDB deployment: |
|
||
.. _java-change-stream-pre-post-collection: | ||
|
||
Create a Collection with Pre-Image and Post-Images Enabled | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
To create a collection with the pre-image and post-image option using the | ||
driver, specify an instance of ``ChangeStreamPreAndPostImagesOptions`` | ||
To use the driver to create a collection that has the pre-image and post-image options |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S:
To use the driver to create a collection that has the pre-image and post-image options | |
To use the driver to create a collection with the pre-image and post-image options |
When you modify this option on a collection, any change streams open on | ||
that collection in your application may fail if configured to require | ||
receiving the pre-image or post-image. | ||
that collection in your application may fail if you configure them to require | ||
the pre-image or post-image. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S: Might be able to trim this down a bit. Style Guide also recommends using "may" only for permission
Maybe something like:
"If you enable this option while change streams are open in your application,
those change streams might fail."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reworded
``2.1.0``. The corresponding change event output by the preceding code example | ||
should resemble the following text: | ||
Suppose you update the ``amount`` field of a document from ``150`` to | ||
``2000``. The change event produced by this change should appear in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``2000``. The change event produced by this change should appear in the | |
``2000``. The change event produced by this change appears in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed along with changes from an earlier comment
``FullDocument.WHEN_AVAILABLE`` option. This option configures the change | ||
stream to the change stream to return the post-image of the modified | ||
document for replace and update change events, if it is available. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``FullDocument.WHEN_AVAILABLE`` option. This option configures the change | |
stream to the change stream to return the post-image of the modified | |
document for replace and update change events, if it is available. | |
``FullDocument.WHEN_AVAILABLE`` option. This option configures the change | |
stream to return the post-image of the modified | |
document for replace and update change events, if it's available. |
the value of ``800`` to ``950`` in a collection of city census data. The | ||
corresponding change event output by the preceding code example should | ||
resemble the following text: | ||
Suppose you update the ``color`` field of a document from ``"purple"`` to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S: Could say "value of the color field," but this reads fine to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
) * DOCSP-15810: update changestream page to use new feature + cleanup * MW PR fixes 1 (cherry picked from commit a175e82)
) * DOCSP-15810: update changestream page to use new feature + cleanup * MW PR fixes 1 (cherry picked from commit a175e82)
) * DOCSP-15810: update changestream page to use new feature + cleanup * MW PR fixes 1 (cherry picked from commit a175e82)
Pull Request Info
PR Reviewing Guidelines
JIRA - DOCSP-30151
Staging
Self-Review Checklist