question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Filtering on Entities Gives Wrong Results

See original GitHub issue
Overview 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
Blackdreadcommented, Apr 27, 2020

it is not an issue. If equals is given then it ignores others like: in, gt, lt, etc.

1reaction
SudharakaPcommented, Apr 27, 2020

@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. 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found