If query.url changes from outside, the input should reflect that and show updated url. This is fixing an issue with query history where if you clicked on query history item, it would not update URL.
While working on this, I noticed that sometimes in Explore (only Explore, not Dashboard❗️), the previously run query is passed to QueryEditor which cases flashes of old query. I was able to reproduce this also in Loki/Prom and created issue for it: https://github.com/grafana/grafana/issues/89530
If
query.url
changes from outside, the input should reflect that and show updated url. This is fixing an issue with query history where if you clicked on query history item, it would not update URL.Fixed URL behavior on this branch:
https://github.com/grafana/grafana-infinity-datasource/assets/30407135/40e65ebd-5212-4dd9-a358-1ba2858976dd
Broken main:
https://github.com/grafana/grafana-infinity-datasource/assets/30407135/f49fcb69-c155-4735-9e79-6d5b449ec6ab
While working on this, I noticed that sometimes in Explore (only Explore, not Dashboard❗️), the previously run query is passed to QueryEditor which cases flashes of old query. I was able to reproduce this also in Loki/Prom and created issue for it: https://github.com/grafana/grafana/issues/89530