Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Endpoint filtering not working properly #187

Open
sky-andrejleal opened this issue Dec 20, 2017 · 2 comments
Open

Endpoint filtering not working properly #187

sky-andrejleal opened this issue Dec 20, 2017 · 2 comments

Comments

@sky-andrejleal
Copy link

API Explorer Version: 0.5.0

When filtering endpoints by a keyword, the list must be updated with endpoints that match with the keyword. That is not happening and the list contains endpoints that don't match with the keyword.

No screenshot added for privacy reasons.

@danielbcorreia
Copy link
Contributor

Do you have a sample query and swagger spec you are using to replicate the problem? This seems to be working in other environments, for instance:

https://apiexplorer-app.herokuapp.com/

Search, for instance, for "tags". It will filter the list as expected.

@MarcosAndre
Copy link
Contributor

I think it's not a bug but the way that api-explorer filter the information.

I tried to find "pet" on "https://apiexplorer-app.herokuapp.com/" and returned other values that string "pet".

Explanation:
Filter: pet
API-explorer transforms the filter into a regex: p-e-t

Source: https://github.com/sky-uk/api-explorer/blob/master/src/components/LateralMenu.js on getFilterState function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants