Skip to content

PHPLIB-1841: Support doesNotAffect arg for relevant operators#1927

Merged
paulinevos merged 1 commit into
mongodb:v2.xfrom
paulinevos:doesNotAffect
Jun 17, 2026
Merged

PHPLIB-1841: Support doesNotAffect arg for relevant operators#1927
paulinevos merged 1 commit into
mongodb:v2.xfrom
paulinevos:doesNotAffect

Conversation

@paulinevos

@paulinevos paulinevos commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Also adds the examples from facet documentation (which shows only the equals operator with the new argument)

Fixes PHPLIB-1841

Copilot AI review requested due to automatic review settings June 16, 2026 12:26
@paulinevos paulinevos requested a review from a team as a code owner June 16, 2026 12:26
@paulinevos paulinevos requested a review from GromNaN June 16, 2026 12:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds support for the doesNotAffect argument across selected Atlas Search operators in the PHP builder, and introduces facet documentation examples exercising the new argument in a $searchMeta facet pipeline.

Changes:

  • Add doesNotAffect to equals, in, range, and compound search operators (plus factory methods), including list-shape validation for PHP arrays.
  • Add facet documentation examples (multi-select faceting + inter-facet filter exclusion) to pipeline fixtures and tests.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/Builder/Search/Pipelines.php Adds canonical Extended JSON pipeline fixtures for facet examples using doesNotAffect.
tests/Builder/Search/FacetOperatorTest.php Adds PHPUnit coverage for the new facet examples that include doesNotAffect on equals.
src/Builder/Search/RangeOperator.php Adds doesNotAffect property/constructor arg, encoding support, and list validation.
src/Builder/Search/InOperator.php Adds doesNotAffect property/constructor arg, encoding support, and list validation.
src/Builder/Search/FactoryTrait.php Extends factory methods (compound, equals, in, range) to accept/pass through doesNotAffect.
src/Builder/Search/EqualsOperator.php Adds doesNotAffect property/constructor arg and encoding support with list validation.
src/Builder/Search/CompoundOperator.php Adds doesNotAffect property/constructor arg and encoding support with list validation.

Comment thread src/Builder/Search/InOperator.php
Comment thread src/Builder/Search/RangeOperator.php
Comment thread src/Builder/Search/CompoundOperator.php
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/Builder/Search/CompoundOperator.php 66.66% 1 Missing ⚠️
src/Builder/Search/EqualsOperator.php 66.66% 1 Missing ⚠️
src/Builder/Search/InOperator.php 66.66% 1 Missing ⚠️
src/Builder/Search/RangeOperator.php 66.66% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Comment thread tests/drivers-evergreen-tools
Comment thread tests/drivers-evergreen-tools
Also adds the examples from facet documentation (which shows only the
`equals` operator with the new argument)
Copilot AI review requested due to automatic review settings June 17, 2026 08:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Comment thread src/Builder/Search/InOperator.php
Comment thread src/Builder/Search/RangeOperator.php
@paulinevos paulinevos enabled auto-merge (squash) June 17, 2026 08:51
@paulinevos paulinevos merged commit 048985c into mongodb:v2.x Jun 17, 2026
36 checks passed
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.

4 participants