grafana/pkg/services/searchV2/testdata
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
..
allowed_actions_scope_all.golden.jsonc Chore: Update grafana-plugin-sdk-go to v0.142.0 (#58115) 2022-11-03 18:34:27 +01:00
allowed_actions_scope_uids.golden.jsonc Chore: Update grafana-plugin-sdk-go to v0.142.0 (#58115) 2022-11-03 18:34:27 +01:00
basic-filter.jsonc Chore: Update grafana-plugin-sdk-go to v0.142.0 (#58115) 2022-11-03 18:34:27 +01:00
basic-search.jsonc RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00
dashboard-create.jsonc Chore: Update grafana-plugin-sdk-go to v0.142.0 (#58115) 2022-11-03 18:34:27 +01:00
dashboard-delete.jsonc Chore: Update grafana-plugin-sdk-go to v0.142.0 (#58115) 2022-11-03 18:34:27 +01:00
dashboard-update.jsonc Chore: Update grafana-plugin-sdk-go to v0.142.0 (#58115) 2022-11-03 18:34:27 +01:00
folders-dashboard-removed-on-folder-removed.jsonc RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00
folders-indexed.jsonc Chore: Update grafana-plugin-sdk-go to v0.142.0 (#58115) 2022-11-03 18:34:27 +01:00
multiple-tokens-beginning-lower.jsonc RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00
multiple-tokens-beginning.jsonc RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00
multiple-tokens-middle-lower.jsonc RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00
multiple-tokens-middle.jsonc RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00
ngram-camel-case-split.jsonc RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00
ngram-punctuation-split.jsonc RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00
ngram-simple.jsonc RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00
ordering-tests-1-[Prometheus_2.].jsonc Chore: Update grafana-plugin-sdk-go to v0.142.0 (#58115) 2022-11-03 18:34:27 +01:00
ordering-tests-2-[Prome].jsonc Chore: Update grafana-plugin-sdk-go to v0.142.0 (#58115) 2022-11-03 18:34:27 +01:00
ordering-tests-3-[Prometheus_stat].jsonc Chore: Update grafana-plugin-sdk-go to v0.142.0 (#58115) 2022-11-03 18:34:27 +01:00
ordering-tests-4-[Loki_2.].jsonc Chore: Update grafana-plugin-sdk-go to v0.142.0 (#58115) 2022-11-03 18:34:27 +01:00
ordering-tests-5-[Lok].jsonc Chore: Update grafana-plugin-sdk-go to v0.142.0 (#58115) 2022-11-03 18:34:27 +01:00
ordering-tests-6-[Loki_stats].jsonc Chore: Update grafana-plugin-sdk-go to v0.142.0 (#58115) 2022-11-03 18:34:27 +01:00
panels-panel-removed-on-dashboard-removed.jsonc Chore: Update grafana-plugin-sdk-go to v0.142.0 (#58115) 2022-11-03 18:34:27 +01:00
prefix-search-beginning-lower.jsonc RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00
prefix-search-beginning.jsonc RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00
prefix-search-middle-lower.jsonc RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00
prefix-search-middle.jsonc RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00
prefix-search-ngram-exceeded.jsonc RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00
scattered-tokens-match-reversed.jsonc Chore: Update grafana-plugin-sdk-go to v0.142.0 (#58115) 2022-11-03 18:34:27 +01:00
scattered-tokens-match.jsonc RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00
search_response_frame.json Previews: datasource permissions (#52747) 2022-07-28 16:40:26 +04:00
sort-asc.jsonc RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00
sort-desc.jsonc RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00