grafana/pkg/tests/api
Sofia Papagiannaki d1dab5828d
Alerting: Update rule API to address folders by UID (#74600)
* Change ruler API to expect the folder UID as namespace

* Update example requests

* Fix tests

* Update swagger

* Modify FIle field in /api/prometheus/grafana/api/v1/rules

* Fix ruler export

* Modify folder in responses to be formatted as <parent UID>/<title>

* Add alerting test with nested folders

* Apply suggestion from code review

* Alerting: use folder UID instead of title in rule API (#77166)

Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>

* Drop a few more latent uses of namespace_id

* move getNamespaceKey to models package

* switch GetAlertRulesForScheduling to use folder table

* update GetAlertRulesForScheduling to return folder titles in format `parent_uid/title`.

* fi tests

* add tests for GetAlertRulesForScheduling when parent uid

* fix integration tests after merge

* fix test after merge

* change format of the namespace to JSON array

this is needed for forward compatibility, when we migrate to full paths

* update EF code to decode nested folder

---------

Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
Co-authored-by: Virginia Cepeda <virginia.cepeda@grafana.com>
Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>
Co-authored-by: Alex Weaver <weaver.alex.d@gmail.com>
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-01-17 11:07:39 +02:00
..
alerting Alerting: Update rule API to address folders by UID (#74600) 2024-01-17 11:07:39 +02:00
azuremonitor Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
correlations Errors: Make errors the same in dev as prod (#77366) 2023-10-30 14:06:26 -04:00
dashboards Chore: Remove FolderID from DTO Folder (#78420) 2023-12-07 13:56:04 +01:00
elasticsearch Elasticsearch: Add error source for DataQuery (#77386) 2023-11-06 11:36:39 +01:00
folders Nested Folders: Move SharedWithMe to the top of the folders list (#79875) 2023-12-29 11:35:15 +01:00
graphite Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
influxdb Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
loki Chore: Remove CreateUserForTests() (#64125) 2023-03-03 11:01:23 -05:00
metrics
opentdsb Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
plugins Pyroscope: Add standalone build (#80222) 2024-01-16 12:46:15 +00:00
prometheus Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
stats Alerting: Fix stats that display alert count when using unified alerting (#64852) 2023-03-17 11:19:18 +00:00