Filtering on Entities Gives Wrong Results
See original GitHub issueOverview of the issue
https://www.jhipster.tech/entities-filtering/
When I filter equals and in, it give wrong result
Motivation for or Use Case
?id.equals=5&id.in=1&id.in=2&id.in=3
=> result entity/object id = 5 expected result: null (no id =5 and in = [1, 2, 3])
Reproduce the error
Related issues
Suggest a Fix
Check criteria with multiple condition
JHipster Version(s)
JHipster configuration
Entity configuration(s) entityName.json
files generated in the .jhipster
directory
Browsers and Operating System
- Checking this box is mandatory (this is just to show you read everything)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Why I'm getting wrong filter result? - Stack Overflow
I'm using Entity Framework to get the Product entity with Id = 5002. Each Product has a list of Orders. So that I'm...
Read more >Wrong result when filtering by Top 10 in filter option
I want to filter my line graph to show the top 10 of a particular measure. However, when I use the filter, the...
Read more >Filter with slicer giving wrong results
I have the below measure, and its not giving me the right result. On the page I'm using this measure, I'm using a...
Read more >Including entity with a query filter can cause not loading the ...
In the case where the Include is used, the results could be considered correct, because the filter says that that Master should not...
Read more >Troubleshooting common filter suggestion issues | Looker
The most common explanation is that the data has changed or updated between the time the filter suggestions were cached and the time...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
it is not an issue. If equals is given then it ignores others like: in, gt, lt, etc.
@letanloc1998 : Hi, actually, @Blackdread is correct; it doesn’t make sense to write
?id.equals=5&id.in=1&id.in=2&id.in=3
since id in this case is already equal to 5. If what you mean is some other bug that you notice, feel free to reopen with more detailed configuration so that we can reproduce the issue. 😃