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

Dashboards: Fixes issue where panels would not refresh if time range updated while in panel view mode #83418

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

kaydelaney
Copy link
Contributor

Fixes an issue where panels would not refresh upon exiting panel view if the time range was updated while viewing the panel.

@kaydelaney kaydelaney self-assigned this Feb 26, 2024
@kaydelaney kaydelaney requested a review from a team as a code owner February 26, 2024 16:09
@kaydelaney kaydelaney requested review from axelavargas and mdvictor and removed request for a team February 26, 2024 16:09
@grafana-delivery-bot grafana-delivery-bot bot added this to the 11.0.x milestone Feb 26, 2024
Copy link
Contributor

This PR must be merged before a backport PR will be created.

1 similar comment
Copy link
Contributor

This PR must be merged before a backport PR will be created.

Copy link
Member

@axelavargas axelavargas left a comment

Choose a reason for hiding this comment

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

The code looks good to me 🙌🏾 , great work @kaydelaney

Btw, It seems this bug was always present 🤔, can we add some unit tests for this?

I found this test suite, it looks like a good place to add this test case: https://github.com/grafana/grafana/blob/main/public/app/features/dashboard/state/DashboardModel.refresh.test.ts

@kaydelaney
Copy link
Contributor Author

kaydelaney commented Feb 27, 2024

I have a follow-up PR that fixes the tests. :) It changes a few other related things too, so I'm leaving it for that

@kaydelaney kaydelaney merged commit a857422 into main Feb 27, 2024
26 checks passed
@kaydelaney kaydelaney deleted the view-panel-time-range branch February 27, 2024 14:14
grafana-delivery-bot bot pushed a commit that referenced this pull request Feb 27, 2024
…updated while in panel view mode (#83418)

(cherry picked from commit a857422)
kaydelaney added a commit that referenced this pull request Mar 1, 2024
…ime range updated while in panel view mode (#83525)

Dashboards: Fixes issue where panels would not refresh if time range updated while in panel view mode (#83418)

(cherry picked from commit a857422)

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🚀 Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants