Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PHPLIB-1654: Support new $concatArrays and $setUnion aggregation accumulators #1732

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
paulinevos merged 2 commits into mongodb:v2.x from paulinevos:1653_synonym-improvements
Jul 14, 2025

Conversation

@paulinevos
Copy link
Contributor

@paulinevos paulinevos commented Jul 11, 2025

Closes PHPLIB-1654

Does what it says on the tin.

@paulinevos paulinevos requested a review from a team as a code owner July 11, 2025 14:24
Copy link

codecov-commenter commented Jul 11, 2025
edited
Loading

Codecov Report

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

Project coverage is 87.54%. Comparing base (ae31f00) to head (5f6ab18).

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...rc/Builder/Accumulator/ConcatArraysAccumulator.php 66.66% 2 Missing ⚠️
src/Builder/Accumulator/SetUnionAccumulator.php 66.66% 2 Missing ⚠️
Additional details and impacted files
@@ Coverage Diff @@
## v2.x #1732 +/- ##
============================================
- Coverage 87.57% 87.54% -0.04% 
- Complexity 3174 3182 +8 
============================================
 Files 421 423 +2 
 Lines 6320 6336 +16 
============================================
+ Hits 5535 5547 +12 
- Misses 785 789 +4 
Flag Coverage Δ
6.0-replica_set 85.65% <75.00%> (-0.03%) ⬇️
6.0-server 81.66% <75.00%> (-0.02%) ⬇️
6.0-sharded_cluster 85.24% <75.00%> (-0.03%) ⬇️
8.0-replica_set 87.46% <75.00%> (-0.04%) ⬇️
8.0-server 82.54% <75.00%> (-0.02%) ⬇️
8.0-sharded_cluster 87.13% <75.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@alcaeus alcaeus left a comment

Choose a reason for hiding this comment

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

LGTM with a minor comment.

Looking at the coverage, it's missing tests for exceptions when providing invalid arguments. We can leave those out for the time being and I'd rather add some kind of semi-automated testing like we have for operation classes (see this code for an example).

paulinevos reacted with thumbs up emoji
{
public function testWarehouseCollection(): void
{
$concatArrays = Accumulator::concatArrays(...);
Copy link
Member

Choose a reason for hiding this comment

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

Ha, our code from discussing different ways to write agg pipelines found its way in here. I'll let you decide whether you want to keep it this way or inline it.

Copy link
Contributor Author

@paulinevos paulinevos Jul 14, 2025

Choose a reason for hiding this comment

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

I liked this :)

alcaeus reacted with heart emoji
@paulinevos paulinevos merged commit 6b1c3cc into mongodb:v2.x Jul 14, 2025
38 of 40 checks passed
@paulinevos paulinevos deleted the 1653_synonym-improvements branch July 14, 2025 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@alcaeus alcaeus alcaeus approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /