Skip to content

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

Merged
merged 17 commits into from
Jun 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: session
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ interface: phpmethod
operation: ~
optional: true
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
arg_name: option
name: filter
type: array|object
Expand Down
9 changes: 9 additions & 0 deletions docs/includes/apiargs-MongoDBClient-method-watch-option.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ source:
file: apiargs-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
The comment can be any valid BSON type for server versions 4.4 and above.
Earlier server versions only support string values.

.. versionadded:: 1.13
---
source:
file: apiargs-method-watch-option.yaml
ref: fullDocument
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ source:
ref: bypassDocumentValidation
---
source:
file: apiargs-aggregate-option.yaml
file: apiargs-common-option.yaml
ref: comment
post: |
The comment can be any valid BSON type for server versions 4.4 and above.
Earlier server versions only support string values.

.. versionadded:: 1.3
---
source:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: bypassDocumentValidation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: let
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
arg_name: option
name: hint
type: string|array|object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
The comment can be any valid BSON type for server versions 4.4 and above.
Earlier server versions only support string values.
---
arg_name: option
name: hint
type: string|array|object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ interface: phpmethod
operation: ~
optional: true
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
arg_name: option
name: unique
type: boolean
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
source:
file: apiargs-MongoDBCollection-method-createIndex-option.yaml
ref: commitQuorum
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: hint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: hint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: maxTimeMS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
source:
file: apiargs-dropCollection-option.yaml
ref: encryptedFields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: maxTimeMS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: maxTimeMS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: maxTimeMS
Expand Down
11 changes: 11 additions & 0 deletions docs/includes/apiargs-MongoDBCollection-method-explain-option.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
source:
file: apiargs-common-option.yaml
ref: comment
post: |
Defaults to the ``comment`` of the explained operation (if any).

This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: readPreference
Expand Down
15 changes: 6 additions & 9 deletions docs/includes/apiargs-MongoDBCollection-method-find-option.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,12 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
arg_name: option
name: comment
type: string
description: |
A comment to attach to the query to help interpret and trace query
:dbcommand:`profile` data.
interface: phpmethod
operation: ~
optional: true
source:
file: apiargs-common-option.yaml
ref: comment
post: |
The comment can be any valid BSON type for server versions 4.4 and above.
Earlier server versions only support string values.
---
arg_name: option
name: cursorType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: hint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: hint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: hint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: bypassDocumentValidation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
source:
file: apiargs-MongoDBCollection-method-bulkWrite-option.yaml
ref: ordered
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: bypassDocumentValidation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: session
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: maxTimeMS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
arg_name: option
name: finalize
type: :php:`MongoDB\\BSON\\Javascript <class.mongodb-bson-javascript>`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.

.. versionadded:: 1.13
---
source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: typeMap
Expand Down
Loading