grafana/pkg/services/annotations
William Wernert 1a53a716e9
Annotations: Lift parts of RBAC from xorm store into auth service (#76967)
* [WIP] Lift RBAC from xorm store

* Cleanup RBAC, fix tests

* Use the scope type map as a map
* Remove dependency on dashboard service
* Make dashboards a map for constant time lookups (useful later)
---
* Lift RBAC tests into a new file to test at service level
* Add necessary access resource structs to xorm store tests

* Move authorization into separate service

* Pass features to searchstore.Builder

* Sort imports

* Code cleanup

* Remove useless scope type check

* Lift permission check into `Authorize()`

* Use clearer language when checking scope types

* Include dashboard permissions in test to ensure they're ignored

* Switch to errutil

* Cleanup sql.Cfg refs
2023-11-14 18:11:01 -05:00
..
accesscontrol Annotations: Lift parts of RBAC from xorm store into auth service (#76967) 2023-11-14 18:11:01 -05:00
annotationsimpl Annotations: Lift parts of RBAC from xorm store into auth service (#76967) 2023-11-14 18:11:01 -05:00
annotationstest Rename Id to ID for annotation models (#62886) 2023-02-03 17:23:09 +01:00
testutil Annotations: Lift parts of RBAC from xorm store into auth service (#76967) 2023-11-14 18:11:01 -05:00
annotations_repository_mock.go Alerting: Persist annotations from multidimensional rules in batches (#56575) 2022-11-04 10:39:26 -05:00
annotations.go Chore: Add errutils helpers (#73577) 2023-08-22 12:52:24 +02:00
models.go Swagger: Rename annotations model (#77605) 2023-11-03 18:32:06 -04:00