-
Notifications
You must be signed in to change notification settings - Fork 25
DOCSP-49868 - MongoUrl #629
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
base: docsp-45382-comp-cvg
Are you sure you want to change the base?
DOCSP-49868 - MongoUrl #629
Conversation
✅ Deploy Preview for docs-csharp ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
mostly minor changes but i think itll be good to get a second review in!
|
||
To learn more about the options that you can specify in a connection URI, see | ||
:manual:`Connection String Options </reference/connection-string-options>` in the | ||
+mdb-server+} manual. |
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.
+mdb-server+} manual. | |
{+mdb-server+} manual. |
To use a ``MongoClientSettings`` object, create an instance of the class, set | ||
its properties, and pass it as an argument to the ``MongoClient`` constructor: |
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: not in your PR but suggest updating this for clarity
To use a ``MongoClientSettings`` object, create an instance of the class, set | |
its properties, and pass it as an argument to the ``MongoClient`` constructor: | |
To set options in a ``MongoClientSettings`` object, perform the following actions: | |
1. Create an instance of the ``MongoClientSettings``, | |
2. Set connection properties | |
3. Pass it as an argument to the ``MongoClient`` constructor | |
The following code demonstrates how to.. |
as shown in the following example. This is useful if you already have a connection string | ||
but want to modify some of the settings programmatically, or if you need to specify settings |
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.
as shown in the following example. This is useful if you already have a connection string | |
but want to modify some of the settings programmatically, or if you need to specify settings | |
as shown in the following example. This is useful if you already have a connection string | |
but want to modify some settings programmatically, or if you want to specify settings |
object, as shown in the following example. This is useful if you already have a ``MongoUrl`` | ||
object but need to specify settings that aren't available in the ``MongoUrl`` class. |
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.
object, as shown in the following example. This is useful if you already have a ``MongoUrl`` | |
object but need to specify settings that aren't available in the ``MongoUrl`` class. | |
object, as shown in the following example. This is useful if you already have a ``MongoUrl`` | |
object but want to specify settings that aren't available in the ``MongoUrl`` class. |
:start-after: // start-mongo-client-settings | ||
:end-before: // end-mongo-client-settings |
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: Update to use the right code include
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.
doh
.. literalinclude:: /includes/fundamentals/code-examples/connection/MongoClientSettingsConfig.cs | ||
:language: csharp | ||
:dedent: | ||
:start-after: // start mongo client settings config | ||
:end-before: // end mongo client settings config |
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.
I: example not rendering
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.
can take another look if needed - mostly pointed out small stuff. Great work!
This section describes the MongoDB connection and authentication options | ||
available in the {+driver-short+}. You can configure your connection using either | ||
the connection URI or a ``MongoClientSettings`` object. | ||
-------- |
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: I think it works but I dont think we need to add the title formatting above and below, just below
ie
Overview
--------
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.
yeah it makes the formatting confusing for the rest of the page. changed
--------------------------------- | ||
How to Specify Connection 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: same as above, remove above title overline
.. literalinclude:: /includes/fundamentals/code-examples/connection/MongoClientSettingsConfig.cs | ||
:language: csharp | ||
:dedent: 8 | ||
:start-after: // start-mongo-url-builder | ||
:end-before: // end-mongo-url-builder |
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: code example not rendering
:start-after: // start-mongo-url-builder | ||
:end-before: // end-mongo-url-builder | ||
|
||
------------------ |
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: dont need overline
:start-after: // start-settings-read-encoding | ||
:end-before: // end-settings-read-encodin |
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.
:start-after: // start-settings-read-encoding | |
:end-before: // end-settings-read-encodin | |
:start-after: // start-settings-read-encoding | |
:end-before: // end-settings-read-encoding |
Indicates whether the settings have been frozen. Frozen settings can't be changed. | ||
This option is read-only. The default value is ``false``. |
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.
Indicates whether the settings have been frozen. Frozen settings can't be changed. | |
This option is read-only. The default value is ``false``. | |
Indicates whether the settings have been frozen. You cannot change frozen settings. | |
This option is read-only. The default value is ``false``. |
Alternatively, you can call the `FrozenCopy() <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.MongoClientSettings.FrozenCopy.html>`__ | ||
method to create a new ``MongoClientSettings`` object with the current settings frozen. |
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: newline the link for readability
Alternatively, you can call the `FrozenCopy() <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.MongoClientSettings.FrozenCopy.html>`__ | |
method to create a new ``MongoClientSettings`` object with the current settings frozen. | |
Alternatively, you can call the `FrozenCopy() | |
<{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.MongoClientSettings.FrozenCopy.html>`__ | |
method to create a new ``MongoClientSettings`` object with the current settings frozen. |
====================== | ||
Additional Information | ||
====================== |
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: convert to regular h2 underline
Additional Information
----------------------
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.
i have no idea how the headings on this page got so out of whack 🙃
Specifies whether the driver is connecting to a load balancer. You can set this | ||
property to ``true`` only if: |
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.
Specifies whether the driver is connecting to a load balancer. You can set this | |
property to ``true`` only if: | |
Specifies whether the driver is connecting to a load balancer. You can set this | |
property to ``true`` only in the following situations: |
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.
it's just one situation (when all the criteria are met), but I did reword it
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.
overall looks really good, i would suggest resolving the vale errors that you can, but its not blocking
:language: csharp | ||
:dedent: 8 | ||
:start-after: // start-mongo-url-builder | ||
:end-before: // end-mongo-url-builder | ||
|
||
Connection 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: Consider adding a short intro to the sections here i.e. "The following sections describe how to set connection options in the xxx and yyy"
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.
whoops, lost that while testing heading levels
public void ConnectionUriExample() | ||
{ | ||
// start-connection-uri | ||
const string connectionUri = "mongodb+srv:/localhost:27017/?connectTimeoutMS=60000&tls=true"; |
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: consider shortening the variable name so the options are more visible from under the cut
const string connectionUri = "mongodb+srv:/localhost:27017/?connectTimeoutMS=60000&tls=true"; | |
const string uri = "mongodb+srv:/localhost:27017/?connectTimeoutMS=60000&tls=true"; |
There are lots of small grammar changes in this PR. These are the only files that need tech review:
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-49868
Staging Links
Self-Review Checklist