-
Notifications
You must be signed in to change notification settings - Fork 266
PHPLIB-749: Support comment option on command helpers #925
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
Conversation
…Aggregate", "Count", "CountDocuments", "EstimatedDocumentsCount".
- Updating docs (adding "comment" option description)
According to the ticket, spec tests should be synced with mongodb/specifications@0fc77cd. All actual tests in master branch are already newer. |
Note that PHPLIB-749 has a "split from" relationship with many DRIVERS tickets. mongodb/specifications@0fc77cd is only the commit for DRIVERS-2189. The latest commit related to the |
src/Operation/InsertOne.php
Outdated
* Server versions between 3.6 and 4.2 only support string as comment, | ||
* and providing a non-string type will result in a server-side error. | ||
* Older server versions do not support comment for aggregate command at all, | ||
* and providing one will result in a server-side error. |
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.
This appears to have been copied from the Aggregate operation class. Per the insert
command docs, comment
was never supported prior to 4.4.
Feel free to leave this as-is and I'll take care of it (and related docs) when merging the PR.
The comment can be any valid BSON type for server versions 4.4 and above. | ||
Server versions between 3.6 and 4.2 only support string as comment, | ||
and providing a non-string type will result in a server-side error. | ||
Older server versions do not support comment for aggregate command at all, |
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.
Note that apiargs-common-option.yaml
is a common include shared by various methods, but this is specific to the aggregate command.
I just noticed that the previous PR for I expect that is because some tests (e.g. |
Current branch state (inherited from master branch):
|
Need new crud spec tests for distinct helper. Therefore: |
@aleksandr-rudo: this seems premature as the work for DRIVERS-2334 hasn't been published yet, and no |
@aleksandr-rudo: Please merge aleksandr-rudo#1 when you get a chance. |
Revise docs and add comment option to ModifyCollection
https://jira.mongodb.org/browse/PHPLIB-749