-
Notifications
You must be signed in to change notification settings - Fork 43
DOCSP-42961: Removed Nested Components #581
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-42961: Removed Nested Components #581
Conversation
✅ Deploy Preview for docs-java ready!
To edit notification comments on pull requests, go to your Netlify site 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.
A few suggestions on formatting, let me know if you have any questions!
MongoClientSettings.builder() | ||
.applyConnectionString(new ConnectionString("mongodb+srv://host1.acme.com"))) | ||
- | Sets the host name to use to look up an SRV DNS record to find the | ||
MongoDB hosts. When setting ``srvHost``, the driver does not process any associated |
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.
MongoDB hosts. When setting ``srvHost``, the driver does not process any associated | |
MongoDB hosts. | |
When setting ``srvHost``, the driver does not process any associated |
Suggestion: Separate the method definition from the implementation details. Think it looks a bit crowded as is and seems to match the format of the next table entry.
.. seealso:: | ||
|
||
:ref:`bsonrepresentation-annotation-code-example` | ||
POJO property. :ref:`bsonrepresentation-annotation-code-example` |
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.
POJO property. :ref:`bsonrepresentation-annotation-code-example` | |
POJO property. | |
For more information on properly using the annotation, see the below :ref:`bsonrepresentation-annotation-code-example` on this page. |
Suggestion: Think it would be good to keep consistent with the sentence formatting and add an intro to the example. Also nice to indicate that the example is below on the same page.
Style guide on Table Text formatting: https://www.mongodb.com/docs/meta/style-guide/style/tables/#std-label-tables-text
nested within the field. When applying ``@BsonProperty`` to a private field, | ||
**you must also add getter and setter methods for that field to serialize and | ||
customize the field name**. |
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.
nested within the field. When applying ``@BsonProperty`` to a private field, | |
**you must also add getter and setter methods for that field to serialize and | |
customize the field name**. | |
nested within the field. | |
When applying ``@BsonProperty`` to a private field, | |
**you must also add getter and setter methods for that field to serialize and | |
customize the field name**. |
Suggestion: Separate implementation detail from rest of definition for ease of reading.
:ref:`BsonExtraElements Annotation Example <bsonextraelements-annotation-code-example>` | ||
- ``Map<String, Object>`` | ||
|
||
:ref:`BsonExtraElements Annotation Example <bsonextraelements-annotation-code-example>` |
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.
:ref:`BsonExtraElements Annotation Example <bsonextraelements-annotation-code-example>` | |
For more information on using the annotation, see the below :ref:`BsonExtraElements Annotation Example <bsonextraelements-annotation-code-example>` on this page. |
Suggestion: Same as above, think it would be nice to introduce ex. in a sentence.
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.
A few more formatting fixes, otherwise LGTM! Let me know if you'd like another look.
.. seealso:: | ||
|
||
:ref:`bsonrepresentation-annotation-code-example` | ||
POJO property. See an example of :ref:`bsonrepresentation-annotation-code-example` on this page. |
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.
POJO property. See an example of :ref:`bsonrepresentation-annotation-code-example` on this page. | |
POJO property. See an example of a :ref:`bsonrepresentation-annotation-code-example` on this page. |
S: Flows a bit better grammatically with the "a"
| When applying ``@BsonProperty`` to a private field, | ||
**you must also add getter and setter methods for that field to serialize and | ||
customize the field name**. |
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.
| When applying ``@BsonProperty`` to a private field, | |
**you must also add getter and setter methods for that field to serialize and | |
customize the field name**. | |
| When applying ``@BsonProperty`` to a private field, | |
**you must also add getter and setter methods for that field to serialize and | |
customize the field name**. |
S: The bolding looks a little too bold for this small section. The Style Guide suggested using the gold Important directive to replace the Important note directive: https://www.mongodb.com/docs/meta/style-guide/nested-components/#important-or-warning.
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.
These are being removed as part of this nested component work where we want annotations taken out of tables.
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.
Is using the gold Important directive rather than the bolding not necessary here? Meant this gold directive that the style guide recommends: https://www.mongodb.com/docs/meta/style-guide/nested-components/#important-or-warning:~:text=IMPORTANT%3A%20Data%20transfer%20as%20part%20of%20the%20backup%20and%20restore%20process%20is%20charged%20separately.
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.
Ok, LGTM!
types: | ||
- `Document <{+api+}/apidocs/bson/org/bson/Document.html>`__ | ||
- `BsonDocument <{+api+}/apidocs/bson/org/bson/BsonDocument.html>`__ | ||
- ``Map<String, 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.
types: | |
- `Document <{+api+}/apidocs/bson/org/bson/Document.html>`__ | |
- `BsonDocument <{+api+}/apidocs/bson/org/bson/BsonDocument.html>`__ | |
- ``Map<String, Object>`` | |
| | |
types: | |
- `Document <{+api+}/apidocs/bson/org/bson/Document.html>`__ | |
- `BsonDocument <{+api+}/apidocs/bson/org/bson/BsonDocument.html>`__ | |
- ``Map<String, Object>`` | |
| |
The spacing is a bit off for this list in staging: https://deploy-preview-581--docs-java.netlify.app/fundamentals/data-formats/pojo-customization/#bsonrepresentation-error-example.
These spaces might fix.
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.
Fixed!
* DOCSP-42961: Removed Nested Components * Fixing indentation errors * Fixing indentation errors again * Fixing indentation errors again * Fixing indentation errors again * Fixing indentation errors again+ * Fixing indentation errors again+ * Fixing code block indentation * tweaks based on internal review feedback * tweaks based on internal review feedback - indentation issues * tweaks based on internal review feedback - indentation issues * tweaks based on internal review feedback - indentation issues * tweaks based on internal review feedback - indentation issues * tweaks to bullet issue * tweaks to bullet issue (cherry picked from commit 1ec4a2c)
* DOCSP-42961: Removed Nested Components * Fixing indentation errors * Fixing indentation errors again * Fixing indentation errors again * Fixing indentation errors again * Fixing indentation errors again+ * Fixing indentation errors again+ * Fixing code block indentation * tweaks based on internal review feedback * tweaks based on internal review feedback - indentation issues * tweaks based on internal review feedback - indentation issues * tweaks based on internal review feedback - indentation issues * tweaks based on internal review feedback - indentation issues * tweaks to bullet issue * tweaks to bullet issue (cherry picked from commit 1ec4a2c)
* DOCSP-42961: Removed Nested Components * Fixing indentation errors * Fixing indentation errors again * Fixing indentation errors again * Fixing indentation errors again * Fixing indentation errors again+ * Fixing indentation errors again+ * Fixing code block indentation * tweaks based on internal review feedback * tweaks based on internal review feedback - indentation issues * tweaks based on internal review feedback - indentation issues * tweaks based on internal review feedback - indentation issues * tweaks based on internal review feedback - indentation issues * tweaks to bullet issue * tweaks to bullet issue (cherry picked from commit 1ec4a2c)
* DOCSP-42961: Removed Nested Components * Fixing indentation errors * Fixing indentation errors again * Fixing indentation errors again * Fixing indentation errors again * Fixing indentation errors again+ * Fixing indentation errors again+ * Fixing code block indentation * tweaks based on internal review feedback * tweaks based on internal review feedback - indentation issues * tweaks based on internal review feedback - indentation issues * tweaks based on internal review feedback - indentation issues * tweaks based on internal review feedback - indentation issues * tweaks to bullet issue * tweaks to bullet issue (cherry picked from commit 1ec4a2c)
* DOCSP-42961: Removed Nested Components * Fixing indentation errors * Fixing indentation errors again * Fixing indentation errors again * Fixing indentation errors again * Fixing indentation errors again+ * Fixing indentation errors again+ * Fixing code block indentation * tweaks based on internal review feedback * tweaks based on internal review feedback - indentation issues * tweaks based on internal review feedback - indentation issues * tweaks based on internal review feedback - indentation issues * tweaks based on internal review feedback - indentation issues * tweaks to bullet issue * tweaks to bullet issue (cherry picked from commit 1ec4a2c)
✨ Staging URL: http://mongodb.com/docs/drivers/java/sync/upcoming 🪵 Logs
|
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-42961
Staging - https://deploy-preview-581--docs-java.netlify.app/
Self-Review Checklist