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

DashboardScene: Fixes issue referring to library panel in dashboard data source #87125

Merged
merged 2 commits into from May 1, 2024

Conversation

torkelo
Copy link
Member

@torkelo torkelo commented Apr 30, 2024

Not sure how this has worked at all recently (since we moved the key from VizLibraryPanel down to VizPanel). But I could not create a new panel that was using dashboard data source and pick a library panel as the source without seeing "VizPanel key could not be translated to a legacy numeric panel id" errors and the panelId in the targets model ended up being 0.

@torkelo torkelo requested a review from a team as a code owner April 30, 2024 12:22
@torkelo torkelo requested review from ivanortegaalba, Sergej-Vlasov, mdvictor and dprokop and removed request for a team, ivanortegaalba and Sergej-Vlasov April 30, 2024 12:22
@torkelo torkelo added this to the 11.1.x milestone Apr 30, 2024
@torkelo torkelo added backport v11.0.x Mark PR for automatic backport to v11.0.x type/bug labels Apr 30, 2024
Copy link
Contributor

Hello @torkelo!
Backport pull requests need to be either:

  • Pull requests which address bugs,
  • Urgent fixes which need product approval, in order to get merged,
  • Docs changes.

Please, if the current pull request addresses a bug fix, label it with the type/bug label.
If it already has the product approval, please add the product-approved label. For docs changes, please add the type/docs label.
If the pull request modifies CI behaviour, please add the type/ci label.
If none of the above applies, please consider removing the backport label and target the next major/minor release.
Thanks!

Copy link
Contributor

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

Copy link
Contributor

@Sergej-Vlasov Sergej-Vlasov left a comment

Choose a reason for hiding this comment

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

LGTM - tried locally and it fixes the bug!

@torkelo torkelo merged commit 4034a26 into main May 1, 2024
32 checks passed
@torkelo torkelo deleted the fix-panel-id-for-lib-panel branch May 1, 2024 12:30
grafana-delivery-bot bot pushed a commit that referenced this pull request May 1, 2024
…ata source (#87125)

* DashboardScene: Fixes issue using a library panel as source for dashboard data source

* Added test

(cherry picked from commit 4034a26)
torkelo added a commit that referenced this pull request May 1, 2024
…ashboard data source (#87173)

DashboardScene: Fixes issue referring to library panel in dashboard data source  (#87125)

* DashboardScene: Fixes issue using a library panel as source for dashboard data source

* Added test

(cherry picked from commit 4034a26)

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Sergej-Vlasov added a commit that referenced this pull request May 2, 2024
…gic (#87120)

* activate library viz panel and adjust id extractor

* revert parts that are fixed in #87125

* clean up after activation handler
grafana-delivery-bot bot pushed a commit that referenced this pull request May 2, 2024
…gic (#87120)

* activate library viz panel and adjust id extractor

* revert parts that are fixed in #87125

* clean up after activation handler

(cherry picked from commit afbd02c)
Sergej-Vlasov added a commit that referenced this pull request May 2, 2024
…refresh logic (#87232)

DashboardScene: adjust lib panel as a dashboard datasource refresh logic (#87120)

* activate library viz panel and adjust id extractor

* revert parts that are fixed in #87125

* clean up after activation handler

(cherry picked from commit afbd02c)

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

Successfully merging this pull request may close these issues.

Dashboard data source: Library panel is incorrectly shown in the query editor
2 participants