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

release-23.1: ui: connect metrics provider to metrics timescale object #99816

Merged
merged 1 commit into from
Mar 29, 2023

Commits on Mar 27, 2023

  1. ui: connect metrics provider to metrics timescale object

    Previously, the `MetricsDataProvider` component queried the redux
    store for the `TimeScale` object which contained details of the
    currently active time window. This piece of state was assumed to
    update to account for the "live" moving window that metrics show when
    pre-set lookback time windows are selected.
    
    A recent PR: #98331 removed the feature that polled new data from SQL
    pages, which also disabled polling on metrics pages due to the re-use
    of `TimeScale`.
    
    This commit modifies the `MetricsDataProvider` to instead read the
    `metricsTime` field of the `TimeScaleState` object. This object was
    constructed for use by the `MetricsDataProvider` but was not wired up
    to the component.
    
    Resolves #99524
    
    Epic: None
    
    Release note: None
    dhartunian committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    f99bf9d View commit details
    Browse the repository at this point in the history