Skip to content
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

feat(query-generation): support for the unwind stages INTELLIJ-195 #130

Merged
merged 3 commits into from
Jan 23, 2025

Conversation

kmruiz
Copy link
Contributor

@kmruiz kmruiz commented Jan 23, 2025

Description

Checklist

Open Questions

@kmruiz kmruiz requested a review from himanshusinghs January 23, 2025 15:10
@kmruiz kmruiz self-assigned this Jan 23, 2025
@github-actions github-actions bot added the feat label Jan 23, 2025
@github-actions github-actions bot added feat and removed feat labels Jan 23, 2025
is FromSchema -> registerConstant(ref.fieldName)
is Inferred<S> -> registerConstant(ref.fieldName)
is HasFieldReference.Computed<S> -> registerConstant(ref.fieldName)
is FromSchema -> registerConstant(ref.displayName)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to use displayName because fieldName removes any prefixed '$' in the field, and in unwind it's mandatory. Because displayName holds the information "as the user wrote it" makes sense to use it here. We were using fieldName because this part was done before displayName was introduced.

Copy link

github-actions bot commented Jan 23, 2025

Coverage Report

Overall Project 80.01% -0.06%
Files changed 73.56%

File Coverage
Unwind.kt 94.55% -5.45%
Aggregate.kt 89.71%
References.kt 55.67% -10.31% 🚫

Copy link

🤖 Benchmark Comparison for chore: support for unwind

Benchmark Previous Current Change
com.mongodb.jbplugin.jmh.SampleBenchmark.init 2,615,321,561.91 ops/s 2,615,979,297.91 ops/s 0.03%

Copy link

🤖 Benchmark Comparison for chore: the changelog

Benchmark Previous Current Change
com.mongodb.jbplugin.jmh.SampleBenchmark.init 2,615,321,561.91 ops/s 2,621,709,260.26 ops/s 0.24%

Copy link
Contributor

@himanshusinghs himanshusinghs left a comment

Choose a reason for hiding this comment

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

Yay 🚀

CHANGELOG.md Outdated
@@ -5,6 +5,7 @@ MongoDB plugin for IntelliJ IDEA.
## [Unreleased]

### Added
* [INTELLIJ-195](https://jira.mongodb.org/browse/INTELLIJ-195) Add support for $unwind.
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry I did not notice this before but I guess we wanna be a little more precise about what support we added for this and the other item?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sounds good, let me just make another commit making this more precise

@kmruiz kmruiz merged commit b0c0432 into main Jan 23, 2025
7 checks passed
@kmruiz kmruiz deleted the feat/INTELLIJ-195 branch January 23, 2025 16:01
@github-actions github-actions bot added feat and removed feat labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants