grafana / iot-sitewise-datasource

IoT Sitewise
Apache License 2.0
18 stars 9 forks source link

feat: implement all option for list associated assets query #261

Closed mitchlee-amzn closed 9 months ago

mitchlee-amzn commented 9 months ago

What this PR does / why we need it: This pull request implements a flag to add an "ALL" option to the ListAssociatedAssets query. Listing children in this way currently isn't supported natively by the SiteWise API, so we work around this by first getting all the asset hierarchies, and requesting them individually, and unifying them at the end. This is temporary, as this API change will be added on the SiteWise end next year to improve scalability. It essentially enables the user to setup navigation through their asset hierarchies in the same way as the SiteWise Console Asset explorer does (and this uses the same approach as the console).

Which issue(s) this PR fixes: This is a critical feature request for one of our customers.

Fixes #

Special notes for your reviewer:

CLAassistant commented 9 months ago

CLA assistant check
All committers have signed the CLA.