-
Notifications
You must be signed in to change notification settings - Fork 266
PHPLIB-810: Always use count command for estimatedDocumentCount #926
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".
This PR already includes PHPLIB-749 (#925) merged inside. |
@aleksandr-rudo: I know we previously discussed the overlapping spec tests (e.g. The two relevant commits from DRIVERS-2228 are:
I don't want to waste your time adding skips for various
We can then wait on #925 to sync the remaining CRUD spec tests. My reasoning for this suggestion is that PHPLIB-810 will be complete with this single PR (noting the future tickets needed to address skipped tests); however, PHPLIB-749 will likely sit in review until I can wrap up PHPC-2049. I'd rather we merge on PR while it's possible to do so. On a separate note, I should point out that DRIVERS-2228 also has several documentation requirements for the
I originally missed this in my first PR for CDRIVER-4309 and had to re-open the ticket to ensure I came back to it. If you'd like to attempt to made those documentation changes in I think we can add the required information under the the existing |
return server_supports_feature($server, self::$wireVersionForCollStats) | ||
? $this->createAggregate() | ||
: $this->createCount(); | ||
return $this->createCount(); |
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.
With this change, I believe createAggregate
is no longer called and should be removed.
@jmikola The idea was to keep relevant changes in the corresponding branches and PRs. I've got two tickets:
It seemed to me that it is a better way to avoid any mistake to store all changes corresponding to tickets requests in theirs branches and merge them in one PR to gain all changes in one place. |
I'm not sure what storing the changes in separate branches would accomplish. The actual code changes for PHPLIB-810 should be much smaller than those for PHPLIB-749, and thus it should be much easier to review and merge its PR. I think that should only require adding skips for tests in DRIVERS-2228 included two commits, and the first (mongodb/specifications@c430376) did include changes to Regarding mistakes, I think those are more likely when the diffs themselves include changes from multiple PRs, as is currently the case. To further elaborate, looks at the current list of commits in this PR:
Contrast that with what I did in #908. An earlier iteration of that PR did have commits from #909 in it, since there was a dependency. After #909 was merged, I rebased #908 on the master branch. At any given time, all commits associated with a specific ticket included its issue number in the commit message. At it applies to these two tickets, I'd expect to see PHPLIB-810 implemented independently and then, if needed, have your PR for PHPLIB-749 rebased on top of this branch. If that doesn't sound manageable (given how comfortable you are with rebasing), let's just focus on getting this PR in a complete state (with just 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.
@aleksandr-rudo: I didn't find this in any commit messages, so please leave a comment on the PR with the appropriate sync commit. For example:
Synced with mongodb/specifications@...
I'd like to review this locally and confirm that the test files and sync commit are accurate before merging, and also ensure we have the correct line to include in the squashed commit message.
Branch description:
|
Note: earlier today I merged documentation changes for the corresponding libmongoc ticket (mongodb/mongo-c-driver@22a8696 for CDRIVER-4309). Feel free to adapt that text for documentation in the |
Co-authored-by: Jeremy Mikola <[email protected]>
Co-authored-by: Jeremy Mikola <[email protected]>
Co-authored-by: Jeremy Mikola <[email protected]>
Done in 8f2e921. |
https://jira.mongodb.org/browse/PHPLIB-810