-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
MongoDB Panache - Consistently encode list with [] #42699
Conversation
This comment has been minimized.
This comment has been minimized.
I'm OK with the change and understand the rationale. The documentation guide should be updated here: https://quarkus.io/guides/mongodb-panache#simplified-queries |
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.
LGTM, please update the guide in the section I mentioned before merging
Made some slight doc adjustments. |
While this is a breaking change for native, I think we shouldn't have to add the [] when dealing with lists: that's not something you do in HQL, it shouldn't be something you have to do in native. Fixes quarkusio#27326
Status for workflow
|
🙈 The PR is closed and the preview is expired. |
Status for workflow
|
While this is a breaking change for native queries (see the updated tests), I think we shouldn't have to add the [] when dealing with lists: that's not something you do in HQL, it shouldn't be something you have to do in native. You have your parameter as
?1
and if the value is a list, it gets properly encoded.Fixes #27326
@loicmathieu could you have a look at this one? I think it's for the better.
Note that I had some weird test failures that might or might not be related locally but I couldn't reproduce them when running the failing test in isolation so I'm not sure what's going on...