grafana/public/app/plugins/datasource
Josh Hunt 13a47aede2
AzureMonitor: Migrate Metrics query editor to React (#30783)
* AzureMonitor: Remove anys from datasource to get the inferred type

* AzureMonitor: Cast some datasource types

TODO: we want proper types for these

* AzureMonitor: Initial react Metrics editor components

* start dimension fields

* replace replaceTemplateVariable with datasource.replace, and rename onQueryChange to onChange

* actually just do template variable replacement in the datasource

* don't use azureMonitorIsConfigured

* Refactors, mainly around the metric metadata

 - Convert all the metric metadata options for the Select before its set into state
 - Stop using SelectableValue because it's basically any when all the properties are optional
 - the onChange function passed to the fields now just accepts the direct value, rather than wrapped in a SelectableValue

* added proper fields, and adding and removing for DimensionFields

* Update query with Dimension changes

* Width

* subscription and query type fields

* Should be feature complete now, more or less

* fix missing import

* fix lint issues

* set default subscription ID

* Starting to write some tests

* tests for query editor

* Remove subscription ID from the label in Metrics

But we keep it there for the angular stuff

* MetricsQueryEditor tests

* Update index.test.tsx

* fix tests

* add template variables to dropdowns

* clean up

* update tests

* Reorganise react components

* Group query fields into rows

* Rename Option type, add Azure response type

* Refactor Metrics metric metadata

 - Types the Azure API
 - Moves default metadata values into datasource

* nit

* update test
2021-03-11 11:37:39 +00:00
..
cloud-monitoring Convert annotations to dataframes (#31400) 2021-02-25 18:29:17 +02:00
cloudwatch CloudWatch: Consume the grafana/aws-sdk (#31807) 2021-03-10 14:19:39 +01:00
dashboard Eslint: no-duplicate-imports rule (bump grafana-eslint-config) (#30989) 2021-02-11 13:45:25 +01:00
elasticsearch Elasticsearch: Fix script fields in query editor (#31681) 2021-03-05 12:48:45 +00:00
grafana Grafana datasource: support multiple targets (#31495) 2021-02-25 22:50:15 -08:00
grafana-azure-monitor-datasource AzureMonitor: Migrate Metrics query editor to React (#30783) 2021-03-11 11:37:39 +00:00
graphite Routing NG: Replace Angular routing with react-router (#31463) 2021-03-10 18:03:36 +01:00
influxdb influxdb: flux: handle is-hidden (#31324) 2021-02-26 10:27:07 +01:00
jaeger Tracing: Specify type of the data frame that is expected for TraceView (#31465) 2021-03-02 13:59:35 +01:00
loki Loki: Remove $__rate_interval from LogQL autocomplete (#31825) 2021-03-11 09:26:15 +01:00
mixed Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
mssql SqlDataSources: Fixes the Show Generated SQL button in query editors (#31236) 2021-02-16 13:10:40 +01:00
mysql Routing NG: Replace Angular routing with react-router (#31463) 2021-03-10 18:03:36 +01:00
opentsdb Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
postgres Routing NG: Replace Angular routing with react-router (#31463) 2021-03-10 18:03:36 +01:00
prometheus Loki: Remove $__rate_interval from LogQL autocomplete (#31825) 2021-03-11 09:26:15 +01:00
tempo Tempo: Convert tempo to backend data source2 2021-03-05 14:28:17 +01:00
testdata TestData: Fixes never ending annotations scenario (#31573) 2021-03-02 09:06:09 +01:00
zipkin Zipkin: Use new trace data format (#31830) 2021-03-10 17:45:03 +01:00