-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui/cluster-ui: fix polling in fingerprints pages
Fixes: #85236 Previously, SQL statement and transaction stats would be refreshed every 5 minutes via sagas in CC and the cached api reducer in db-console. This method relied on a refresh data call that resided in `shouldComponentUpdate`, which was ignored by the respective polling managers when the time interval was not complete. This pattern was hacky as (unguarded calls in `shouldComponentUpdate` are typically avoided in React. Polling in these pages were removed with the introduciton of persisted stats, however we would like to reintroduce polling when the selected time interval is `Latest xx..' (i.e. not a custom interval). The removal of this polling introduced a bug in the CC fingerprint pages, as the saga effects for when the data was received would invalidate the data after the polling interval. Now that the data was never refreshed, the page would get stuck on the 'loading data' page. This commit reintroduces polling via a `setTimeout` in the page components, rather than through cached data reducer and sagasn for CC. Data in the fingerprints overview pages is now refreshed every 5 minutes for non-custom time ranges. The data invalidation in CC is also cleaned up such that a call to invalidate data only happens right before a request to fetch data (to signify new data is being loaded). Release note (bug fix): the statements and transaction fingerprint will no longer get stuck on the loading page in CC after 5 minutes idling on the page Release note (ui change): the statements and transaction fingerprint now refresh data every 5 minutes for non-custom time ranges Release justification: bug fix
- Loading branch information
Showing
13 changed files
with
119 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.