-
Notifications
You must be signed in to change notification settings - Fork 409
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
Add operators support for $addFields
#2850
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2850 +/- ##
==========================================
+ Coverage 63.37% 63.48% +0.10%
==========================================
Files 451 451
Lines 23465 23511 +46
==========================================
+ Hits 14872 14926 +54
+ Misses 7628 7619 -9
- Partials 965 966 +1
... and 1 file with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. |
@noisersup this pull request has merge conflicts. |
@noisersup this pull request has merge conflicts. |
@noisersup this pull request has merge conflicts. |
Will there be another PR? The issue mentions the support of operator for common/projection.go but I'm not seeing the change related to that 🤔 |
internal/handlers/common/aggregations/stages/projection/projection.go
Outdated
Show resolved
Hide resolved
internal/handlers/common/aggregations/stages/projection/projection.go
Outdated
Show resolved
Hide resolved
internal/handlers/common/aggregations/stages/projection/projection.go
Outdated
Show resolved
Hide resolved
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.
At the very least, there is a merge conflict
$addFields
internal/handlers/common/aggregations/stages/projection/projection.go
Outdated
Show resolved
Hide resolved
internal/handlers/common/aggregations/stages/projection/projection.go
Outdated
Show resolved
Hide resolved
👋 @noisersup, this PR does not address what I analysed on the issue, maybe there is a confusion 🤔 The issue was about supporting |
I believe that from the description and title it seems that we need to support operators in more stages than only in |
2739b15
to
d6cd8f5
Compare
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.
Looks good to me, maybe Chi can spot something as she analyzed the original task, but to me the code looks consistent with the rest of aggregation.
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.
Thanks for this!
Description
Closes #2679.
Readiness checklist
task all
, and it passed.@FerretDB/core
), Labels, Project and project's Sprint fields.