grafana/public
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
..
app Alerting: Update rule API to address folders by UID (#74600) 2024-01-17 11:07:39 +02:00
dashboards Elasticsearch: Add error source for DataQuery (#77386) 2023-11-06 11:36:39 +01:00
emails Grafana UI: Use correct path to 'online.svg', 'warn-tiny.svg', 'critical.svg' and 'background_tease.jpg' (#78273) 2024-01-02 10:28:11 +00:00
fonts Theme: Use Inter font by default (#59544) 2022-12-01 11:59:37 +00:00
gazetteer Geomap: Add more countries ISO 3166 Alpha-3-code to the gazetteer/countries.json (#75311) 2023-11-06 10:08:33 -08:00
img Navigation: Rearrange IA based on tree test (#78804) 2023-11-30 15:18:05 +00:00
lib Kusto: Move loading @kusto/language-service off the main thread (#72006) 2023-07-20 12:36:39 +02:00
locales Frontend: Migrate Drawer.tsx from aria-label e2e selectors to data-testid (#79616) 2024-01-10 11:20:51 +00:00
maps Geomap: include sample geojson files (#39057) 2021-09-10 09:05:03 -07:00
sass Grafana UI: Use correct path to 'online.svg', 'warn-tiny.svg', 'critical.svg' and 'background_tease.jpg' (#78273) 2024-01-02 10:28:11 +00:00
test Chore: some type fixes (#80094) 2024-01-09 10:00:00 +00:00
vendor Plugins: Allow loading panel plugins from a CDN (#59096) 2023-01-27 15:08:17 +01:00
views Themes: Fixes system theme asset paths (#80019) 2024-01-04 14:33:19 +01:00
api-enterprise-spec.json fix(swagger): Add new access control endpoints (#80053) 2024-01-05 08:12:01 -05:00
api-merged.json Alerting: Update rule API to address folders by UID (#74600) 2024-01-17 11:07:39 +02:00
openapi3.json Alerting: Update rule API to address folders by UID (#74600) 2024-01-17 11:07:39 +02:00
robots.txt