Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination of search results breaks filter on search #226

Open
fyockm opened this issue Sep 4, 2018 · 0 comments
Open

Pagination of search results breaks filter on search #226

fyockm opened this issue Sep 4, 2018 · 0 comments

Comments

@fyockm
Copy link
Contributor

fyockm commented Sep 4, 2018

In the Auth0 Authorization Extension dashboard, Users tab, you can search for the users you want. Say you have 5000 users total, and you want to find all the 30 users with an email address with the domain example.com. You type in example.com, in the search field, and are shown a paginated view of the first 10 users out of 30 who match that result.

The bug is, when you click the button to fetch the next page of the results, the search filter is cleared, so instead of fetching page 2 (users 11 - 20) of the users you actually searched for, you get page 2 of all the users.

This is clearly a bug, and clearly problematic when you don’t want to be forced to do a manual linear search through the thousands of users you have in order to find the dozen users you are interested in.

Specifically, at the time you perform the initial search, the following HTTP GET request is performed:
https://mytenant.eu8.webtask.io/1234567890abcdef/api/users?q=example.com*&field=&per_page=10

but when the button is clicked to fetch page 2 of the results, the following HTTP GET request is performed, with the q request parameter empty.
https://mytenant.eu8.webtask.io/1234567890abcdef/api/users?q=&field=&per_page=10&page=2

Reported on Auth0 Community

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

No branches or pull requests

1 participant