grafana/public/app
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
..
angular Cloudwatch: Use new annotation API (#48102) 2022-04-27 12:41:48 +02:00
core DashboardPickerByID: add optionLabel prop (#47556) 2022-05-06 11:08:13 +00:00
features Alerting: modify prometheus endpoints for proxying using the datasource UID (#48052) 2022-05-06 15:05:02 -04:00
partials Chore: Migrates remaining Angular modals to React (#33476) 2021-04-28 15:22:28 +02:00
plugins 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
polyfills WIP Chore: reduce strict errors (#40462) 2021-10-15 08:57:55 +02:00
routes Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
store Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
types Access control: Pass access control metadata for api keys (#48445) 2022-04-29 15:30:24 +02:00
app.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
AppWrapper.tsx Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
dev.ts React: Add why-did-you-render dev extension to better see what components re-render and why (in console) (#23455) 2020-04-09 19:44:05 +02:00
index.ts Chore: Prevent loading error from showing too early (#41347) 2021-11-08 16:13:37 +01:00