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

AdminUsers: reset page to zero on query change #26293

Merged
merged 1 commit into from
Jul 13, 2020

Conversation

hshoff
Copy link
Contributor

@hshoff hshoff commented Jul 13, 2020

What this PR does / why we need it:

Before if you searched for a user while on page 2 you would see empty results. This happens because page state does not get reset when query changes. The fix is to reset page to 0 whenever the query changes.

before
search-page-before

after
search-page-fixed

Which issue(s) this PR fixes:

Fixes #26209

@hshoff hshoff requested review from a team, mckn and peterholmberg and removed request for a team July 13, 2020 14:01
@zoltanbedi zoltanbedi added this to the 7.1 milestone Jul 13, 2020
Copy link
Member

@zoltanbedi zoltanbedi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @hshoff for your contribution, this looks good to me.

@zoltanbedi zoltanbedi merged commit e63028e into grafana:master Jul 13, 2020
dprokop pushed a commit that referenced this pull request Jul 16, 2020
@dprokop dprokop mentioned this pull request Jul 16, 2020
dprokop pushed a commit that referenced this pull request Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

user search works only on page 1
3 participants