grafana/public/app
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
..
angular Bug: Fix broken ui components when angular is disabled (#78208) 2023-11-27 10:43:55 +01:00
core Alerting: Update rule API to address folders by UID (#74600) 2024-01-17 11:07:39 +02:00
features Alerting: Update rule API to address folders by UID (#74600) 2024-01-17 11:07:39 +02:00
partials
plugins Update dependency react-use to v17.4.3 (#80690) 2024-01-17 00:29:09 +00:00
routes Data trails: Move and rename to explore metrics (#80649) 2024-01-17 00:05:44 +02:00
store Feat: Feature toggle admin page frontend interface (#72164) 2023-08-03 14:17:00 -04:00
types Alerting: Update rule API to address folders by UID (#74600) 2024-01-17 11:07:39 +02:00
app.ts Frontend: Reload the browser when backend configuration/assets change (#79057) 2024-01-04 08:00:07 +01:00
AppWrapper.tsx React Router: start migrating to v6 (#66921) 2023-04-27 07:18:38 +02:00
dev.ts Chore: Make "why-did-you-render" a dynamic import (#53121) 2022-08-08 15:33:49 +01:00
index.ts Feature: Trusted Types support (#64975) 2023-04-27 18:20:37 +02:00