Skip to content

Commit

Permalink
[Logs UI] Add default refresh interfal on streaming (elastic#151711)
Browse files Browse the repository at this point in the history
Closes elastic#150626

## Summary

This PR sets the default streaming refresh interval to 5 seconds.

## Testing
Go to Logs -> Stream
Click on `Stream live` button
The refresh interval should be now 5s (not 1m as it was before)
<img width="2557" alt="image"
src="https://user-images.githubusercontent.com/14139027/220366007-71d2dae9-686f-476e-aee0-0f7ee1456315.png">
  • Loading branch information
jennypavlova authored Feb 23, 2023
1 parent ea26816 commit 63dbbb5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ export const updateTimeContextFromTimeFilterService = actions.assign(
) {
return {
...getTimeFromEvent(context, event),
refreshInterval: event.refreshInterval,
refreshInterval:
event.type === 'TIME_FROM_TIME_FILTER_SERVICE_CHANGED'
? event.refreshInterval
: { ...context.refreshInterval, pause: event.refreshInterval.pause },
};
} else {
return {};
Expand Down

0 comments on commit 63dbbb5

Please sign in to comment.