grafana / iot-sitewise-datasource

IoT Sitewise
Apache License 2.0
18 stars 9 forks source link

Unable to access child assets when parent asset has multiple children through multiple hierarchies #264

Closed farhan85 closed 9 months ago

farhan85 commented 9 months ago

What happened: We have a customer that has set up their asset hierarchy where a parent asset has multiple child assets through multiple hierarchies, the dashboard is not retrieving the full list of all child assets.

What you expected to happen: When selecting a parent asset, all child assets of that parent asset is displayed in the drop-down selector

How to reproduce it (as minimally and precisely as possible):

Screenshots Hierarchy of the customer's assets: 01_asset_hierarchy

SiteWise console shows all child assets of the parent asset _3PHLine 02_console_parent_asset

In the Grafana dashboard, variables are created to get the list of child assets

03_grafana_variables_1

03_grafana_variables_2

However, when selecting the parent asset _3PHLine, only one child asset is displayed 03_grafana_parent_asset

Anything else we need to know?:

Environment: TBD

sarahzinger commented 9 months ago

Hello, I believe some folks from AWS recently merged https://github.com/grafana/iot-sitewise-datasource/pull/261 which adds an "all" option to list all assets, is this the same issue?

I believe it was merged but not yet released, but is being tested.

farhan85 commented 9 months ago

Yes that should address the same issue here. Thanks

mitchlee-amzn commented 9 months ago

Yes this has already been shipped, and will be in the next release.

sarahzinger commented 9 months ago

Just released this in https://github.com/grafana/iot-sitewise-datasource/releases/tag/v1.16.0