Skip to content

Conversation

@rustagir
Copy link
Contributor

@rustagir rustagir commented Apr 4, 2025

Pull Request Info

PR Reviewing Guidelines

JIRA - https://jira.mongodb.org/browse/DOCSP-45943

Staging Links

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?

@netlify
Copy link

netlify bot commented Apr 4, 2025

Deploy Preview for docs-csharp ready!

Name Link
🔨 Latest commit 9a85c7d
🔍 Latest deploy log https://app.netlify.com/sites/docs-csharp/deploys/67f6aa98c984600008d4c2a2
😎 Deploy Preview https://deploy-preview-570--docs-csharp.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.

@rustagir rustagir force-pushed the DOCSP-45943-dateonly-serialization branch from e171ba6 to 64727cd Compare April 4, 2025 18:24
Copy link
Collaborator

@mongoKart mongoKart left a comment

Choose a reason for hiding this comment

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

LGTM w/ 2 suggestions

@rustagir rustagir requested a review from papafe April 7, 2025 13:59
- ``Representation``: Set to a ``BsonType`` instance that specifies how
the ``DateOnly`` value is stored in MongoDB.

- ``DocumentFormat``: Set to one of the following
Copy link

Choose a reason for hiding this comment

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

I think here we need to spcify that DocumentFormat is an optional parameter and that is used only if Representation is BsonType.Document.

Copy link

@papafe papafe left a comment

Choose a reason for hiding this comment

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

Overall it looks good, just a small comment to clarify.

@rustagir rustagir requested a review from papafe April 8, 2025 16:46

- Adds the ``DocumentFormat`` property to the ``DateOnlySerializer``.
This property allows you to customize the way that the driver stores
``DateOnly`` values in nested documents. This release also adds the
Copy link

Choose a reason for hiding this comment

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

I think just saying "values" as it was before make more sense. Now it seems like it's influencing only DateOnly values in subdocuments.

- ``Representation``: Set to a ``BsonType`` instance that specifies how
the ``DateOnly`` value is stored in MongoDB.

- ``DocumentFormat``: Set only if you set the ``Representation``
Copy link

Choose a reason for hiding this comment

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

Maybe we can say something like "Sets the format to use for the document if Representation is BsonType.Document, ignored otherwise.

Copy link

@papafe papafe left a comment

Choose a reason for hiding this comment

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

Small comments.

@rustagir rustagir requested a review from papafe April 9, 2025 17:13
Copy link

@papafe papafe left a comment

Choose a reason for hiding this comment

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

The text LGTM

@rustagir rustagir merged commit da58c7d into mongodb:master Apr 9, 2025
6 checks passed
rustagir added a commit that referenced this pull request Apr 9, 2025
* DOCSP-45943: dateonly serialization

* MW PR fixes 1

* FP tech review

* DOCSP-48936 - Add title length check (#571)

* DOCSP-48921: Server 8.1 compat (#555)

* DOCSP-48921: Server 8.1 compat

* fix

* Update upgrade.txt

* add xs and note

* DOCSP-45803: atlas search queries null & guid values (#582)

* FP tech review2

---------

Co-authored-by: Mike Woofter <108414937+mongoKart@users.noreply.github.com>
(cherry picked from commit da58c7d)
rustagir added a commit that referenced this pull request Apr 9, 2025
* DOCSP-45943: dateonly serialization

* MW PR fixes 1

* FP tech review

* DOCSP-48936 - Add title length check (#571)

* DOCSP-48921: Server 8.1 compat (#555)

* DOCSP-48921: Server 8.1 compat

* fix

* Update upgrade.txt

* add xs and note

* DOCSP-45803: atlas search queries null & guid values (#582)

* FP tech review2

---------

Co-authored-by: Mike Woofter <108414937+mongoKart@users.noreply.github.com>
(cherry picked from commit da58c7d)
mongoKart added a commit to mongoKart/docs-csharp that referenced this pull request May 16, 2025
* DOCSP-45943: dateonly serialization

* MW PR fixes 1

* FP tech review

* DOCSP-48936 - Add title length check (mongodb#571)

* DOCSP-48921: Server 8.1 compat (mongodb#555)

* DOCSP-48921: Server 8.1 compat

* fix

* Update upgrade.txt

* add xs and note

* DOCSP-45803: atlas search queries null & guid values (mongodb#582)

* FP tech review2

---------

Co-authored-by: Mike Woofter <108414937+mongoKart@users.noreply.github.com>
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