insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

Unexpected partial matches when filtering for requests

Open brendanm-stripe opened this issue 11 months ago • 3 comments

Expected Behavior

When entering multiple words in the sidebar request filter, I expect the filtered result set to only include requests which match all words in filter. This was the existing behaviour recently and make it easy to filter large lists of requests by describing details in the name.

Actual Behavior

When multiple words are entered in the filter, requests are returned if they match any of the words in the filter.

This makes it difficult to filter large request lists by attributes described in the request name/label as was previously possible.

Reproduction Steps

1/ Create three requests with names: fizz buzz fizz buzz

2/ Enter filter term: fizz buzz

3/ Look at filtered results.

Expect only request "fizz buzz" (matches both words in filter) but get all three instead.

Is there an existing issue for this?

Additional Information

I suspect this may be related to the use of fuzzyMatchAll in https://github.com/Kong/insomnia/pull/6323

Insomnia-filtering

Insomnia Version

2023.5.8

What operating system are you using?

macOS

Operating System Version

macOS Ventura 13.5.2

Installation method

download from insomnia.rest, auto updated

Last Known Working Insomnia version

unknown but believe < 2023.5.0

brendanm-stripe avatar Sep 13 '23 13:09 brendanm-stripe

@brendanm-stripe thanks for reporting this, we can also reproduce

image

filfreire avatar Sep 27 '23 11:09 filfreire

I have since discovered, accidentally, that I can kind of work around this by omitting spaces in my filter terms. The catch here is that the terms need to be in the correct order matching the request name:

fizz-buzz-all fizz-buzz-2

This is also a bit off because I would not actually expect either request to match in the above without a space, but allows me to mostly keep going.

brendanm-stripe avatar Sep 27 '23 15:09 brendanm-stripe

is this open or anyone working on this?

jayant-vashisth avatar Jan 10 '24 12:01 jayant-vashisth

Cannot reproduce the issue, looks like it is fixed now. Hence can be closed

issue_rep

issue_rep_res

harshitrajsinha avatar Aug 09 '24 16:08 harshitrajsinha