grafana/public
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
..
app AzureMonitor: Migrate Metrics query editor to React (#30783) 2021-03-11 11:37:39 +00:00
dashboards Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
emails Email: change the year in templates (#30294) 2021-01-19 08:39:52 +01:00
fonts
img
sass Theming: Support for runtime theme switching and hooks for custom themes (#31301) 2021-02-20 09:02:06 +01:00
test Routing NG: Replace Angular routing with react-router (#31463) 2021-03-10 18:03:36 +01:00
vendor Decimals: Big Improvements to auto decimals and fixes to auto decimals bug found in 7.4-beta1 (#30519) 2021-01-22 16:37:56 +01:00
views Routing NG: Replace Angular routing with react-router (#31463) 2021-03-10 18:03:36 +01:00
robots.txt