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

Streaming: Fix an issue with the time series panel and streaming data source when scrolling back from being out of view #31431

Merged
merged 3 commits into from
Feb 24, 2021

Conversation

torkelo
Copy link
Member

@torkelo torkelo commented Feb 23, 2021

Fixes #31368

…ource when scrolling back from being out of view
@torkelo torkelo requested review from a team, peterholmberg and thisisobate and removed request for a team February 23, 2021 19:29
@torkelo torkelo added this to the 7.4.3 milestone Feb 23, 2021
@torkelo torkelo added old backport v7.4.x Mark PR for automatic backport to v7.4.x add to changelog labels Feb 23, 2021
@torkelo torkelo requested review from ryantxu and removed request for peterholmberg and thisisobate February 23, 2021 19:30
@@ -135,7 +135,7 @@ export class PanelChrome extends Component<Props, State> {
// The next is outside a react synthetic event so setState is not batched
// So in this context we can only do a single call to setState
onDataUpdate(data: PanelData) {
if (!this.props.isInView) {
if (!this.props.isInView && data.state !== LoadingState.Streaming) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait this is not correct, need to always return, updating

Copy link
Member

@ryantxu ryantxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hymmm -- this may fix it, but likely a real error with state/revision tracking and updates in GraphNG

@torkelo
Copy link
Member Author

torkelo commented Feb 23, 2021

This fixed the issue for me, without this fix there is a refresh when you scroll back

@leeoniya
Copy link
Contributor

hymmm -- this may fix it, but likely a real error with state/revision tracking and updates in GraphNG

bug report was for 7.4.2 (before graphng refactor), does this still affect master? (sry AFK)

@torkelo
Copy link
Member Author

torkelo commented Feb 23, 2021

This bug affected all react panels . Had nothing to do with GraphNG

@torkelo torkelo merged commit 59c060f into master Feb 24, 2021
@torkelo torkelo deleted the streaming-and-chrome-visible branch February 24, 2021 10:12
grafanabot pushed a commit that referenced this pull request Feb 24, 2021
…ource when scrolling back from being out of view (#31431)

* Streaming: Fixes an issue with time series panel and streaming data source when scrolling back from being out of view

* Slight tweak

(cherry picked from commit 59c060f)
torkelo added a commit that referenced this pull request Feb 24, 2021
…ource when scrolling back from being out of view (#31431) (#31442)

* Streaming: Fixes an issue with time series panel and streaming data source when scrolling back from being out of view

* Slight tweak

(cherry picked from commit 59c060f)

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
@achatterjee-grafana achatterjee-grafana changed the title Streaming: Fixes an issue with time series panel and streaming data source when scrolling back from being out of view Streaming: Fix an issue with the time series panel and streaming data source when scrolling back from being out of view Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add to changelog old backport v7.4.x Mark PR for automatic backport to v7.4.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Time Series panel is refreshing and loosing previous values when edit or scrolling dashboard
3 participants