grafana / iot-sitewise-datasource

IoT Sitewise
Apache License 2.0
19 stars 9 forks source link

Switching region in query editor does not load assets #250

Closed fridgepoet closed 7 months ago

fridgepoet commented 8 months ago

What happened: When I switched in a query editor to a different region from Default, the assets present in that region didn't load.

What you expected to happen: In the query editor, switching regions loads that region's assets.

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

  1. Create a datasource connection and set a Default region.
  2. Go to Build a dashboard or to Explore
  3. Select some query type, and click on "Select an asset" dropdown
  4. Now select a different region from the dropdown
  5. Clicking on "Select an asset" dropdown does not load the different region's dropdown

Here is a screen recording. In this example I have set "us-west-2" as a Default region and have no assets there. I switch to "us-east-2" where I do have assets, but they do not load, even when I go to Explore.

https://github.com/grafana/iot-sitewise-datasource/assets/4163034/82e084b2-4975-4392-b906-c144e1a770c4

Anything else we need to know?:

Environment: