-
Notifications
You must be signed in to change notification settings - Fork 358
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
Auto Refresh button #536
Auto Refresh button #536
Conversation
Hey @victorgawk , I have two thoughts and one question:
Question: On the topics page with messages, would this also retrigger the search over and over again? This may be undesired behaviour by a user. |
As I have observed, the message search is not called when |
Agree! I didn't think about the abort scenario (about the consumer groups page, bye PR #538 maybe? 😬). Trying to solve the problem, should I replace the behavior:
by:
And finally, to make the behavior clear to the user, add a text/span at the right side from the refresh buttons indicating the remaining time until the next refresh.
Current values are:
What about the default and the maximum values? |
I'm afraid this is the case, I'm sorry! I acknowledged the work you put into this. If you plan to commit more features we are also always available to discuss this pre implementation via GitHub or via the Redpanda slack.
What you suggest there makes sense to me, yes please!
Default: 10 sec Thanks! |
- Added a countdown span showing when the next refresh will happen. - To avoid auto refresh triggering while another refresh is still ongoing, the auto refresh now will only force-refresh when no other api requests are ongoing. - Updated auto refresh interval values: - default: 5 -> 10 seconds - minimum: 1 -> 5 seconds - maximum: 60 -> 300 seconds
|
Thanks @victorgawk , great first contribution :). |
* Add Auto Refresh Button - Added a countdown span showing when the next refresh will happen. - To avoid auto refresh triggering while another refresh is still ongoing, the auto refresh now will only force-refresh when no other api requests are ongoing. - Updated auto refresh interval values: - default: 5 -> 10 seconds - minimum: 1 -> 5 seconds - maximum: 60 -> 300 seconds
Add an "Auto Refresh" button next to the "Force Refresh" button:
When pressed, the page will be automatically force refreshed every
X
seconds whereX
can be configured in the "User Preferences" panel:When the auto refresh is active, the "Auto Refresh" and "Force Refresh" button will be displayed with pulsating and rotation animations respectively:
Pressing the button again disables the auto refresh.