Skip to content

bug: Filter on Entities page returns inaccurate resultsΒ #346

@kirbarn

Description

@kirbarn

πŸ“ Description & Context

Filter on Entities page returns inaccurate results.

πŸ‘ Expected Behavior

Basically, when I filter by substring I expect matches to be always returned that contain this substring. See reproduction steps to understand it better.

πŸ₯Ύ Reproduction steps

I'll give two examples to illustrate how you can reproduce it. I'm sure there are more cases.

The words I used are color-coded with colored bars. White bars mean any set of characters that is none of the words I'm searching by.

Example 1

There's an entity in the list of entities that looks like Red[space]Yellow

Step 1

Search by: Red.
Expectation: all entities containing Red (there are more than one), including Red[space]Yellow.
Result: no matches - inaccurate .

Image

Step 2

Search by: Yellow.
Expectation: Red[space]Yellow - there's only on entity containing Yellow.
Result: no matches - inaccurate .

Image

Step 3

Search by: Red[space]Yellow.
Expectation: Red[space]Yellow.
Result: Red[space]Yellow - accurate .

Image

Example 2

There's an entity in the list of entities that looks like BlueGreen

Step 1

Search by: Blue.
Expectation: all entities containing Blue (there are more than one), including BlueGreen.
Result: an entity that contains neither - possibly accurate if it also searches by description? But the way it works now, looks inaccurate.
Note: usually this search returns what you see in Step 2. I'm not sure what I did to make it return only exactly one match instead of several.

Image

Step 2

Search by: Blue.
Expectation: all entities containing Blue (there are more than one), including BlueGreen.
Result: a list of entities that contains Blue and some that contain neither, but BlueGreen is not there - inaccurate.

Image

Step 3

Search by: Green.
Expectation: all entities containing Green, including BlueGreen.
Result: a list of entities that contains Green, including BlueGreen twice - accurate.

Image

Step 4

Search by: Green.
Expectation: BlueGreen twice.
Result: BlueGreen twice - accurate.

Image

Are you willing to submit PR?

No, I don't have time to work on this right now

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions