You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed when updating e2e tests that the database selector doesn't show options unless it's opened, closed, and then opened again. Looks like it only happens in Grafana v10+. I didn't notice a problem with the Redshift datasource with uses the same ResourceSelector component.
Screen.Recording.2023-10-18.at.9.39.49.AM.mov
What you expected to happen:
Here's how it was working when running in Grafana v9.4.7
Screen.Recording.2023-10-18.at.9.46.53.AM.mov
How to reproduce it (as minimally and precisely as possible):
Run Athena in Grafana v10+
Add a panel with an Athena DS and click the database selector
Click away from the database selector to close it
Click the database selector again and now the options should appear.
Anything else we need to know?:
Environment:
Grafana version: 10+
Plugin version: 2.12.0
The text was updated successfully, but these errors were encountered:
Upon closer review, it appears that this issue is impacting more than just the "database" selector but seems to be an issue for "region", "data source", "database", possibly "table". "column" seems to be the only selector that consistently works as expected
My best understanding of where this issue is that react state was being updated but because of the array reference was not being rewritten the component was not re-rendering. In the case of redshift it appears that the state is being updated + modified into a new object as part of the fetch which is probably why the query form component is being rerendered and options are showing up as expected.
What happened:
I noticed when updating e2e tests that the database selector doesn't show options unless it's opened, closed, and then opened again. Looks like it only happens in Grafana v10+. I didn't notice a problem with the Redshift datasource with uses the same ResourceSelector component.
Screen.Recording.2023-10-18.at.9.39.49.AM.mov
What you expected to happen:
Here's how it was working when running in Grafana v9.4.7
Screen.Recording.2023-10-18.at.9.46.53.AM.mov
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: