grafana/pkg/tsdb/azuremonitor
Andreas Christou 2bd9e9aca5
AzureMonitor: Add support for selecting multiple options when using the equals and not equals dimension filters (#48650)
* Add support for multiselect

- Add filters param to Dimensions
- Update existing tests
- Add MultiSelect component
- Add helper function to determine valid options
- Update labels hook to account for custom values
- Update go type
- Add function to build valid filters string

* Additional go tests

- Ensure query targets are built correctly

* Update DimensionFields frontend test

- Corrently rerender components
- Additional test for multiple labels selection
- Better selection of options in react-select components

* Fix lint issue

* Reset filters when operator or dimension changes

* Terminology

* Update test

* Add backend migration

- Update types (deprecate Filter field)
- Add migration logic
- Update tests
- Update dimension filters buliding

* Add migration test code

* Simplify some logic

* Add frontend deprecation notice

* Add frontend migration logic and migration tests

* Update setting of filter values

* Update DimensionFields test

* Fix linting issues

* PR comment updates

- Remove unnecessary if/else condition
- Don't set filter default value as queries should be migrated
- Add comment explaining why sw operator only accepts one value
- Remove unnecessary test for merging of old and new filters

* Nit on terminology

Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com>

* Rename migrations for clarity

Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com>
2022-05-10 15:05:48 +01:00
..
azlog AzureMonitor: Move Application Insights and Insight Analytics to a deprecated package (#45834) 2022-03-02 15:41:07 +01:00
loganalytics chore: remove all remaining uses of golang.org/x/net/context (#47564) 2022-04-11 14:20:10 -04:00
macros AzureMonitor: Move Application Insights and Insight Analytics to a deprecated package (#45834) 2022-03-02 15:41:07 +01:00
metrics AzureMonitor: Add support for selecting multiple options when using the equals and not equals dimension filters (#48650) 2022-05-10 15:05:48 +01:00
resourcegraph chore: remove all remaining uses of golang.org/x/net/context (#47564) 2022-04-11 14:20:10 -04:00
testdata Azure Monitor: Add support for numeric fields in ARG (#38728) 2021-09-01 09:02:08 +02:00
time AzureMonitor: Move Application Insights and Insight Analytics to a deprecated package (#45834) 2022-03-02 15:41:07 +01:00
types AzureMonitor: Add support for selecting multiple options when using the equals and not equals dimension filters (#48650) 2022-05-10 15:05:48 +01:00
azuremonitor_test.go AzureMonitor: Remove deprecated code (#48328) 2022-04-28 10:27:39 +02:00
azuremonitor-resource-handler_test.go Migrate to Grafana Azure SDK (#47232) 2022-04-04 11:23:13 +02:00
azuremonitor-resource-handler.go AzureMonitor: Remove deprecated code (#48328) 2022-04-28 10:27:39 +02:00
azuremonitor.go AzureMonitor: Remove deprecated code (#48328) 2022-04-28 10:27:39 +02:00
credentials_test.go Migrate to Grafana Azure SDK (#47232) 2022-04-04 11:23:13 +02:00
credentials.go Migrate to Grafana Azure SDK (#47232) 2022-04-04 11:23:13 +02:00
httpclient_test.go AzureMonitor: Remove deprecated code (#48328) 2022-04-28 10:27:39 +02:00
httpclient.go AzureMonitor: Remove deprecated code (#48328) 2022-04-28 10:27:39 +02:00
routes.go AzureMonitor: Remove deprecated code (#48328) 2022-04-28 10:27:39 +02:00