PHPLIB-1627: BulkWriteCommand API#1630
Merged
alcaeus merged 38 commits intomongodb:v2.xfrom May 12, 2025
Merged
Conversation
GromNaN
reviewed
Mar 4, 2025
GromNaN
reviewed
Mar 7, 2025
GromNaN
reviewed
Mar 17, 2025
d9351cc to
33952f7
Compare
f2cae41 to
c4c0deb
Compare
GromNaN
reviewed
Apr 4, 2025
GromNaN
reviewed
Apr 7, 2025
The transaction spec requires certain language, and this is now expected in spec test for clientBulkWrite.
Also fixes the return type for getBuilderEncoder()
GromNaN
reviewed
May 9, 2025
Member
|
The spec tests need to be updated with mongodb/specifications@63e382e |
Member
The previous failure was unrelated, but I'll update the spec tests once mongodb/mongo-php-driver#1822 is merged up to v2.x. |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR implements the new BulkWriteCommand API and refactors several test and client modules to align with the updated driver options and error messaging. Key changes include:
- Removing redundant test helper methods and refactoring driver option handling.
- Introducing new stub files and operation classes for BulkWriteCommand support.
- Updating tests to reflect newly designed error messages and encoder/codec accessors.
Reviewed Changes
Copilot reviewed 41 out of 41 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/SpecTests/ClientSideEncryption/FunctionalTestCase.php | Removed redundant createTestClient method to use inherited behavior. |
| tests/PedantryTest.php | Updated method filtering to re-index arrays and exclude non-public constructors. |
| tests/FunctionalTestCase.php | Refactored driver option handling with renamed method appendDriverOptions. |
| tests/Collection/CollectionFunctionalTest.php | Added tests for getBuilderEncoder and getCodec, and updated expected exception messages. |
| stubs/Driver/*.stub.php | Added stub files for new BulkWriteCommand API components. |
| src/Operation/ClientBulkWriteCommand.php | Introduced new operation for executing bulk write commands with updated options handling. |
| src/ClientBulkWrite.php | Implemented a fluent API for bulk write operations with proper option validations. |
| src/Client.php | Added bulkWrite method integrating the new BulkWriteCommand API. |
| Configuration files and workflows | Updated dependency versions and driver version settings with TODO notes. |
alcaeus
approved these changes
May 12, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
GromNaN
reviewed
May 12, 2025
GromNaN
reviewed
May 12, 2025
|
|
||
| env: | ||
| DRIVER_VERSION: "stable" | ||
| # TODO: change to "stable" once 2.0.0 is released |
Member
There was a problem hiding this comment.
Suggested change
| # TODO: change to "stable" once 2.0.0 is released | |
| # TODO: change to "stable" once 2.1.0 is released |
GromNaN
approved these changes
May 12, 2025
alcaeus
added a commit
that referenced
this pull request
Jun 4, 2025
* v2.1: (50 commits) Fix missing placeholder replacement in release output (#1717) Use more lax assertion when checking exception message (#1712) Test against stable 2.1 version of the extension (#1698) Use assume_role command before accessing secrets for atlas-data-lake tests PHPLIB-1656: Stop testing with MongoDB 4.0 (#1693) Make serverless tasks patch-only (#1692) Bump tests/specifications from `cea6c7d` to `9d0d3f0` (#1690) Bump tests/drivers-evergreen-tools from `21b4109` to `32fd8eb` (#1691) PHPLIB-847, PHPLIB-1627: BulkWriteCommand API (#1630) Bump tests/specifications from `0c41c8b` to `cea6c7d` (#1688) Bump tests/drivers-evergreen-tools from `fa58b39` to `21b4109` (#1689) Test next next minor PHP version with PHP 8.4 (#1685) Bump tests/drivers-evergreen-tools from `9be5587` to `fa58b39` (#1679) Bump tests/specifications from `43d2c7b` to `0c41c8b` (#1680) Bump tests/drivers-evergreen-tools from `cec0139` to `9be5587` (#1676) Bump tests/drivers-evergreen-tools from `d1e19b1` to `cec0139` (#1675) Bump tests/specifications from `6118deb` to `43d2c7b` (#1674) Bump tests/drivers-evergreen-tools from `f53da28` to `d1e19b1` (#1673) Test against stable 2.0 version of the extension (#1663) Bump tests/specifications from `f354960` to `6118deb` ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://jira.mongodb.org/browse/PHPLIB-1627
Requires mongodb/mongo-php-driver#1818