Skip to content

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

Merged

Conversation

caitlindavey
Copy link
Collaborator

@caitlindavey caitlindavey commented Oct 18, 2024

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

  • Is this free of any warnings or errors in the RST?
  • Did you run a spell-check?
  • Did you run a grammar-check?
  • Are all the links working?
  • Are the facets and meta keywords accurate?

Copy link

netlify bot commented Oct 18, 2024

Deploy Preview for docs-java ready!

Name Link
🔨 Latest commit 9a899e7
🔍 Latest deploy log https://app.netlify.com/sites/docs-java/deploys/67180aa1dcfd9f00082c5971
😎 Deploy Preview https://deploy-preview-581--docs-java.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@lindseymoore lindseymoore left a 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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Comment on lines 300 to 302
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**.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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>`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
: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.

Copy link
Collaborator

@lindseymoore lindseymoore left a 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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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"

Comment on lines +302 to +304
| 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**.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| 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.

Copy link
Collaborator Author

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.

Copy link
Collaborator

@lindseymoore lindseymoore Oct 22, 2024

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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, LGTM!

Comment on lines 310 to 314
types:
- `Document <{+api+}/apidocs/bson/org/bson/Document.html>`__
- `BsonDocument <{+api+}/apidocs/bson/org/bson/BsonDocument.html>`__
- ``Map<String, Object>``
|
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

@caitlindavey caitlindavey merged commit 1ec4a2c into mongodb:master Oct 23, 2024
4 of 5 checks passed
caitlindavey added a commit that referenced this pull request Oct 23, 2024
* 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)
caitlindavey added a commit that referenced this pull request Oct 23, 2024
* 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)
caitlindavey added a commit that referenced this pull request Oct 23, 2024
* 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)
caitlindavey added a commit that referenced this pull request Oct 23, 2024
* 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)
caitlindavey added a commit that referenced this pull request Oct 23, 2024
* 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)
@docs-builder-bot
Copy link

✨ Staging URL: http://mongodb.com/docs/drivers/java/sync/upcoming

🪵 Logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants