grafana/public/app/core
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
..
actions TopNav: Plugin page layouts / information architecture (#53174) 2022-09-05 14:56:08 +02:00
components Alerting: Update rule API to address folders by UID (#74600) 2024-01-17 11:07:39 +02:00
context Frontend: Reload the browser when backend configuration/assets change (#79057) 2024-01-04 08:00:07 +01:00
copy Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
history Chore: Upgrade prettier to v3 (#71764) 2023-07-17 15:58:22 +01:00
hooks Navigation: Fix broken layout at 544px (#63793) 2023-03-01 15:31:32 +00:00
icons Grafana UI: Make it possible to bundle package with plugins (#76191) 2023-10-13 14:11:41 +02:00
internationalization Explore: Fix incorrect interpolation of table title (#80227) 2024-01-16 12:22:32 +01:00
navigation Page: Use bouncing logo instead of loading spinner for fallback (#79028) 2023-12-15 13:35:42 +00:00
reducers Chore: Upgrade react-redux (#77296) 2023-10-31 16:24:34 +00:00
selectors Chore: Remove newBrowseDashboards feature toggle (#78190) 2023-11-22 15:22:00 +00:00
services Chore: Mock out faro so this test doesn't throw an error (#80477) 2024-01-15 09:43:53 +00:00
specs Chore: type improvements (#80464) 2024-01-15 14:29:39 +00:00
utils Chore: type improvements (#80464) 2024-01-15 14:29:39 +00:00
app_events.ts EventBus: Introduces new event bus with emitter backward compatible interface (#27564) 2020-11-03 13:08:54 +01:00
config.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
constants.ts Dashboards: POC split between visualizations and widgets (#70850) 2023-07-12 10:09:22 -03:00
core.ts TopNav: KioskMode rewrite move to AppChrome responsibility and make it a global feature (#55149) 2022-09-15 14:04:58 +02:00
lodash_extended.ts Performance: Standardize lodash imports to use destructured members (#33040) 2021-04-21 09:38:00 +02:00
log_events.ts Panel monitoring (#75456) 2023-10-09 08:19:08 +03:00
profiler.ts Chore: Improve some types (#64675) 2023-03-14 09:51:44 +00:00
store.ts any/type assertion fixes (#57009) 2022-10-17 10:10:10 +01:00
TableModel.ts Chore: more any/type assertion improvements (#57450) 2022-10-25 11:04:35 +02:00
time_series2.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
trustedTypePolicies.ts Sandbox: use same trusted types default policy than grafana main realm (#75539) 2023-09-27 16:50:23 +02:00