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

SingleStat: Fix issue with panel links #32721

Merged
merged 1 commit into from Apr 7, 2021
Merged

Conversation

gjulianm
Copy link
Contributor

@gjulianm gjulianm commented Apr 6, 2021

What this PR does / why we need it: I noticed a regression in Grafana 7.4.0, where SingleStat links stopped working. It was a bug introduced in 683ce69, where the signature of getDataLinkUIModel changed but was not updated properly in the SingleStat panel. I updated it following similar changes made in that commit.

Which issue(s) this PR fixes: I did not see any issue created for this PR, I can create one if needed.

Special notes for your reviewer: I know that SingleStat panels are deprecated and that Stat panels now provide the same panel-link functionality (thanks for that!), but we have several dashboards and migration is taking time. This PR being included would allow us to keep updating Grafana without breaking dashboards.

A funny thing that I noticed while debugging this is that the link would work properly if there was no data for the panel. I couldn't see why that happened, but I found it weird.

@gjulianm gjulianm requested review from a team, torkelo and dprokop and removed request for a team April 6, 2021 13:55
@CLAassistant
Copy link

CLAassistant commented Apr 6, 2021

CLA assistant check
All committers have signed the CLA.

@grafanabot grafanabot added area/frontend pr/external This PR is from external contributor labels Apr 6, 2021
@torkelo torkelo added this to the 7.5.3 milestone Apr 7, 2021
@torkelo torkelo added the old backport v7.5.x Mark PR for automatic backport to v7.5.x label Apr 7, 2021
Copy link
Member

@torkelo torkelo left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

@torkelo torkelo changed the title SingleStat: Fix broken panel links SingleStat: Fixes issue with panel links Apr 7, 2021
@torkelo torkelo merged commit fbabed2 into grafana:master Apr 7, 2021
grafanabot pushed a commit that referenced this pull request Apr 7, 2021
torkelo pushed a commit that referenced this pull request Apr 7, 2021
(cherry picked from commit fbabed2)

Co-authored-by: Guillermo Julián <gjulianm@users.noreply.github.com>
@ifrost ifrost changed the title SingleStat: Fixes issue with panel links SingleStat: Fix issue with panel links Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add to changelog area/frontend old backport v7.5.x Mark PR for automatic backport to v7.5.x pr/external This PR is from external contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants