Skip to content

PHPLIB-1122: Additional support for BSON objects #1096

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 4 commits into from
Jun 9, 2023

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Jun 7, 2023

https://jira.mongodb.org/browse/PHPLIB-1122

Adds support for BSON objects with:

  • MapReduce $out parameter
  • CreateEncryptedCollection and DropEncryptedCollection encryptedFields option

Adds test coverage for BulkWrite operations.

Also adds tests for $out deprecations (re: PHPLIB-480) using various document types.
@jmikola jmikola requested a review from GromNaN June 7, 2023 17:34
jmikola added 3 commits June 8, 2023 14:09
CreateEncryptedCollection::createDataKeys() required more intensive changes to support BSON objects at various levels. The handling for PackedArray and array-yielding Serializable objects is modeled after document_to_array().

Tests were intentionally omitted for the state collection names, since custom values are unsupported and the options aren't documented for public use. Functional tests such as asserting options in outgoing 'create' commands seem like overkill.
Copy link
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

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

LGTM.

@jmikola jmikola merged commit 2d29868 into mongodb:master Jun 9, 2023
@jmikola jmikola deleted the phplib-1122 branch June 9, 2023 14:10
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