-
Notifications
You must be signed in to change notification settings - Fork 24
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-45943: dateonly serialization #570
DOCSP-45943: dateonly serialization #570
Conversation
✅ Deploy Preview for docs-csharp ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
e171ba6
to
64727cd
Compare
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 w/ 2 suggestions
- ``Representation``: Set to a ``BsonType`` instance that specifies how | ||
the ``DateOnly`` value is stored in MongoDB. | ||
|
||
- ``DocumentFormat``: Set to one of the following |
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 think here we need to spcify that DocumentFormat
is an optional parameter and that is used only if Representation
is BsonType.Document
.
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 it looks good, just a small comment to clarify.
source/whats-new.txt
Outdated
@@ -122,6 +122,13 @@ The 3.2 driver release includes the following new features: | |||
To learn more about Atlas Vector Search with the {+driver-short+}, see the | |||
:ref:`csharp-atlas-vector-search` guide. | |||
|
|||
- 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 |
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 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`` |
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.
Maybe we can say something like "Sets the format to use for the document if Representation
is BsonType.Document
, ignored otherwise.
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.
Small comments.
* DOCSP-48921: Server 8.1 compat * 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.
The text LGTM
* 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 <[email protected]> (cherry picked from commit da58c7d)
* 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 <[email protected]> (cherry picked from commit da58c7d)
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-45943
Staging Links
Self-Review Checklist