-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add default auto refresh config #21351
base: master
Are you sure you want to change the base?
Conversation
import type { RefreshConfig } from 'views/components/contexts/AutoRefreshContext'; | ||
import { durationToMS } from 'util/DateTime'; | ||
|
||
const defaultInterval = 'PT30S'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if we should hardcode it. What are arguments against reusing the search refresh defaults for this? 5s does not seem to be too low for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dennisoelkers 30 sec that was a product requirement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you clarify if it was even considered to reuse the configurable values or if that number was just an educated guess, without knowing that a user can configure it in other places?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I addressed this question. Let's wait for a response
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dennisoelkers After discussions we decided to use the default interval from configuration. Pushed the changes
Description
This PR adds the option to add default auto-refresh config to
AutoRefreshProvider
We are changing the default config for Events. Now it's starts automatically with 30s interval
Motivation and Context
fix: #21350
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: