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

Allow the ability to list associated assets for multiple assets #403

Open
serrat839 opened this issue Jan 31, 2025 · 2 comments
Open

Allow the ability to list associated assets for multiple assets #403

serrat839 opened this issue Jan 31, 2025 · 2 comments

Comments

@serrat839
Copy link

Is your feature request related to a problem? Please describe.
Specifically in this file: https://github.com/grafana/iot-sitewise-datasource/blob/main/pkg/sitewise/api/list_associated_assets.go#L20, you are unable to list assets associated with a list of assets. This code only accepts a single assetID despite the grafana form taking in multiple assetIDs. This breaks the ability to create complex chains of queries.

Describe the solution you'd like
I would like it so when I put multiple assets into the list associated asset query, I can return the assets associated with each chosen asset.

Describe alternatives you've considered
I've looked to create multiple queries for each parent asset, but then this does not scale well as I create many assets with many children.

Additional context

Image

Instead of only showing one sensor, it should show 3+ assets associated with the chosen assets.

@jmbuss
Copy link
Collaborator

jmbuss commented Feb 3, 2025

Hey @serrat839,

Thank you for raising this issue to the team. We are working on a different query editor experience that uses execute query and will let you write your own queries. This will allow you to write a query to list associated assets from multiple assets. It is planned to be released in February.

@iwysiu iwysiu moved this from Incoming to Waiting in AWS Datasources Feb 5, 2025
@taleena taleena moved this from Waiting to Next in AWS Datasources Feb 11, 2025
@taleena taleena moved this from Next to Incoming in AWS Datasources Feb 11, 2025
@taleena taleena moved this from Incoming to Next in AWS Datasources Feb 11, 2025
@diehbria
Copy link
Collaborator

Hi @serrat839, just to clarify we will be having this issue fixed directly. As @jmbuss we will also be releasing an updated query editor experience that you may find very useful, but we'll also be addressing the bug you noted in list assets not supporting multiple assets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Next
Development

No branches or pull requests

4 participants