grafana/pkg/services/store
Ieva eb9ef34272
RBAC: Permission check performance improvements for the new search (#60729)
* Add checker and update the resource filter function for new search

* Add tests for checker

* small fixes

* handle location for panels correctly

* clean up checker code and extend the tests for it

* more fixes, but tests don't quite work yet

* a small change to return error

* cleanup

* more simplification

* fix tests

* correct wrong argument ordering & use constant

* Apply suggestions from code review

Co-authored-by: Artur Wierzbicki <artur.wierzbicki@grafana.com>

* import

* check general folder from permission checker function

* handle root folder aka general folder properly

* update tests

* clean up

* lint

* add fix from main

Co-authored-by: Karl Persson <kalle.persson@grafana.com>
Co-authored-by: Artur Wierzbicki <artur.wierzbicki@grafana.com>
2023-01-27 12:12:30 +00:00
..
entity Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
k8saccess Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
kind EntityAPI: Rename references from kind to family (#62044) 2023-01-25 23:42:04 +00:00
resolver EntityAPI: Rename references from kind to family (#62044) 2023-01-25 23:42:04 +00:00
sanitizer Renderer: Add sanitize API (#50936) 2022-07-07 15:32:18 +04:00
testdata Chore: Update grafana-plugin-sdk-go to v0.142.0 (#58115) 2022-11-03 18:34:27 +01:00
auth.go Chore: get user from appcontext rather than store utility (#59926) 2022-12-07 07:38:23 -08:00
config.go Storage: Content root storage (#54929) 2022-09-12 18:34:46 -04:00
entity_events_mock.go SearchV2: instant local updates, folder events (#50001) 2022-06-03 13:11:32 -07:00
entity_events_test.go chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
entity_events.go RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00
file_guardian.go Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
github_helper.go Storage: support git + github backed roots (#52192) 2022-07-28 23:26:44 -07:00
http.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
sanitize.go Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
service_test.go Store: skip flaky test in the store service (#59443) 2022-11-29 17:54:20 +00:00
service.go Git: Update experimental workflow POC (#60049) 2022-12-08 13:57:33 -05:00
static_auth.go Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
storage_disk.go Storage: Fix initialization on windows (#57504) 2022-10-25 09:27:22 +08:00
storage_git.go Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
storage_sql_test.go Storage: store uploaded files in SQL rather than on the disk (#49034) 2022-05-21 16:55:11 -07:00
storage_sql.go chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
system_users_mock.go Store: Add mock for system users to be used in tests (#61245) 2023-01-11 11:50:22 -03:00
system_users_test.go Storage: Add system users service (#57767) 2022-11-24 15:15:32 +01:00
system_users.go Store: Add mock for system users to be used in tests (#61245) 2023-01-11 11:50:22 -03:00
tree.go Storage: Content root storage (#54929) 2022-09-12 18:34:46 -04:00
types_test.go Storage: simplify retrieving the file names from the response frame (#51805) 2022-07-07 10:47:05 +04:00
types.go Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
utils_test.go ObjectStore: Add folder to kind registry (#57461) 2022-10-21 16:48:32 -04:00
utils.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
validate.go ObjectStore: add a kind registry (#56507) 2022-10-08 12:05:46 -04:00