Skip to content

Conversation

@kvwalker
Copy link
Contributor

Copy link
Member

@jmikola jmikola left a comment

Choose a reason for hiding this comment

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

I deprecated another option this morning in #533, so comments here are framed with that in mind.

description: |
Maximum number of documents or index keys to scan when executing the query.
.. versionadded:: 1.2
Copy link
Member

Choose a reason for hiding this comment

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

Removing these options would technically be a BC break. We should actually note that they're deprecated in the documentation with .. deprecated:: 1.4.

* on new documents to satisfy a query, if cursorType is TAILABLE_AWAIT.
*
* * maxScan (integer): Maximum number of documents or index keys to scan
* when executing the query.
Copy link
Member

Choose a reason for hiding this comment

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

We can add a sentence or paragraph here that says "Deprecated since 1.4."

* * max (document): The exclusive upper bound for a specific index.
*
* * maxScan (integer): Maximum number of documents or index keys to scan
* when executing the query.
Copy link
Member

Choose a reason for hiding this comment

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

This can be synced with the Find.php text once you add a note there.


foreach ($this->getInvalidIntegerValues() as $value) {
$options[][] = ['maxScan' => $value];
}
Copy link
Member

Choose a reason for hiding this comment

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

This can stay and we can add a deprecation notice test as I'm doing with https://github.com/mongodb/mongo-php-library/pull/533/files#diff-aa6398bbbe577c2105dfa55f4afcf30b (once that's merged).

@kvwalker kvwalker merged commit 5ada249 into mongodb:master May 1, 2018
kvwalker added a commit that referenced this pull request May 1, 2018
@kvwalker kvwalker deleted the PHPLIB-340 branch May 1, 2018 18:27
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.

2 participants