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: Show error when data source is missing #60099

Merged
merged 1 commit into from Dec 14, 2022

Conversation

joshhunt
Copy link
Contributor

@joshhunt joshhunt commented Dec 9, 2022

What is this feature?

Shows an error on panels when the data source is missing.

The error was already being caught, but it was just ignored. This just pipes it through to the observable so it can be shown to the user.

image

Fixes #60088

You can test this by importing the dashboard from #60088

@joshhunt joshhunt added this to the 9.3.2 milestone Dec 9, 2022
@joshhunt joshhunt requested a review from a team December 9, 2022 14:55
@joshhunt joshhunt requested review from a team as code owners December 9, 2022 14:55
@joshhunt joshhunt requested review from a team, ashharrison90, JoaoSilvaGrafana, academo, codeincarnate and oscarkilhed and removed request for a team December 9, 2022 14:55
@grafanabot

This comment was marked as resolved.

@joshhunt joshhunt changed the title Dashboards: Show error on panel when data source is missing Dashboards: Show error when data source is missing Dec 9, 2022
Copy link
Contributor

@polibb polibb left a comment

Choose a reason for hiding this comment

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

Thank you @joshhunt 🙌

@joshhunt joshhunt merged commit 9a41277 into main Dec 14, 2022
@joshhunt joshhunt deleted the joshhunt/fix-missing-datasource-no-error branch December 14, 2022 12:37
grafanabot pushed a commit that referenced this pull request Dec 14, 2022
Return caught exceptions to panel as error state

(cherry picked from commit 9a41277)
joshhunt added a commit that referenced this pull request Dec 14, 2022
Dashboards: Show error when data source is missing (#60099)

Return caught exceptions to panel as error state

(cherry picked from commit 9a41277)

Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
GuYounes pushed a commit to paul-wurth/BIXpert that referenced this pull request Feb 8, 2023
…60313)

Dashboards: Show error when data source is missing (grafana#60099)

Return caught exceptions to panel as error state

(cherry picked from commit 9a41277)

Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Dashboards: Error not shown on panels when missing data source
3 participants