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

Alerting: Allow linking to library panels #79693

Merged
merged 7 commits into from
Dec 19, 2023

Conversation

gillesdemey
Copy link
Member

What is this feature?

This PR will allow selecting a "library panel" to link the alert to.

Prior to this PR we were checking for a valid panel type but this doesn't seem to be returned via the /api/dashboards/uid/:uid API endpoint we use.

return typeof panel.id === 'number' && typeof panel.type === 'string';

image

This PR loosens the restriction to allow selecting any library panel as it might be a graph or time series type. The UI will still display a warning that only those types are supported but won't stop the user from selecting it.

Special notes for your reviewer:

I've added a simple regression test to check if all panels in the picker are enabled.

@gillesdemey gillesdemey added this to the 10.3.x milestone Dec 19, 2023
@gillesdemey gillesdemey requested a review from a team as a code owner December 19, 2023 14:22
@gillesdemey gillesdemey requested review from konrad147 and soniaAguilarPeiron and removed request for a team December 19, 2023 14:22
Copy link
Member

@soniaAguilarPeiron soniaAguilarPeiron left a comment

Choose a reason for hiding this comment

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

LGTM!
I added a comment, it seems there is a change not related to this PR.

@gillesdemey
Copy link
Member Author

gillesdemey commented Dec 19, 2023

CI seems to fail for unrelated reason :(

EDIT: I've merged #79705 on CI and it should be green after rebase

@gillesdemey gillesdemey enabled auto-merge (squash) December 19, 2023 16:36
@gillesdemey gillesdemey merged commit 324f7d7 into main Dec 19, 2023
15 checks passed
@gillesdemey gillesdemey deleted the alerting/allow-library-panels-selection branch December 19, 2023 16:41
@summerwollin summerwollin modified the milestones: 10.3.x, 10.3.0 Jan 22, 2024
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.

None yet

3 participants