Skip to content

Unexpected partial matches when filtering for requests #6494

Open
@brendanm-stripe

Description

@brendanm-stripe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-bugBug: general classificationE-good-first-issueExperience required: Beginner / NewS-verifiedStatus: Verified by maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions