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

Variables: Add support for aliasIDs to datasource variables (Fixes issue with Postgres datasource variables) #78170

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

torkelo
Copy link
Member

@torkelo torkelo commented Nov 15, 2023

There are still a few places where aliasIDs are not taken into account. I expect some more in community/customer plugins.

Scenes DataSourceVariable did not have this problem as it's using DataSourceSrv.getList with a pluginId filter.

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!


import { getPanelIdForVizPanel } from './utils';

export class NextPanelIdGenerator {
Copy link
Member

Choose a reason for hiding this comment

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

@torkelo - Not related to this PR I think?

Copy link
Member Author

Choose a reason for hiding this comment

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

@dprokop oops, no that was a test from yesterday :)

@torkelo torkelo changed the title Variables: Add support for aliasIDs to datasource variables Variables: Add support for aliasIDs to datasource variables (Fixes issue with Postgres datasource variables) Nov 15, 2023
Copy link
Member

@dprokop dprokop left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

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

Tested that this fixes the issue, thanks!

@torkelo torkelo merged commit f7e5689 into main Nov 15, 2023
@torkelo torkelo deleted the fix-datasource-variable branch November 15, 2023 10:18
grafana-delivery-bot bot pushed a commit that referenced this pull request Nov 15, 2023
…sue with Postgres datasource variables) (#78170)

* Variables: Add support for aliasIDs to datasource variables

* remove file

(cherry picked from commit f7e5689)
@aangelisc aangelisc modified the milestones: 10.3.x, 10.2.3 Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants