grafana/pkg/services/dashboards
Alexander Zobnin 5d724c2482
Zanzana: Initial dashboard search (#93093)
* Zanzana: Search in a background and compare results

* refactor

* Search with check

* instrument zanzana client

* add single_read option

* refactor

* refactor move check into separate function

* Fix tests

* refactor

* refactor getFindDashboardsFn

* add resource type to span attributes

* run ListObjects concurrently

* Use list and search in less cases

* adjust metrics buckets

* refactor: move Check and ListObjects to AccessControl implementation

* Revert "Fix tests"

This reverts commit b0c2f072a2.

* refactor: use own types for Check and ListObjects inside accesscontrol package

* Fix search scenario with low limit and empty query string

* more accurate search with checks

* revert

* fix linter

* Revert "revert"

This reverts commit ee5f14eea8.

* add search errors metric

* fix query performance under some conditions

* simplify check strategy

* fix pagination

* refactor findDashboardsZanzanaList

* Iterate over multiple pages while making check request

* refactor listUserResources

* avoid unnecessary db call

* remove unused zclient

* Add notes for SkipAccessControlFilter

* use more accurate check loop

* always use check for search with provided UIDs

* rename single_read to zanzana_only_evaluation

* refactor

* update go workspace

* fix linter

* don't use deprecated fields

* refactor

* fail if no org specified

* refactor

* initial integration tests

* Fix tests

* fix linter errors

* fix linter

* Fix tests

* review suggestions

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* fix limit

* refactor

* refactor tests

* fix db config in tests

* fix migrator (postgres)

---------

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2024-10-04 12:27:10 +02:00
..
dashboardaccess Authz: Remove use of SignedInUser copy for permission evaluation (#78448) 2023-11-22 14:20:22 +01:00
database Zanzana: Initial dashboard search (#93093) 2024-10-04 12:27:10 +02:00
service Zanzana: Initial dashboard search (#93093) 2024-10-04 12:27:10 +02:00
accesscontrol_test.go Folders: Set folder creation permission as part of legacy create (#94040) 2024-10-01 14:03:02 +02:00
accesscontrol.go Folders: Set folder creation permission as part of legacy create (#94040) 2024-10-01 14:03:02 +02:00
dashboard_provisioning_mock.go Folders: Reduce DB queries when counting and deleting resources under folders (#81153) 2024-01-30 18:26:34 +02:00
dashboard_service_mock.go Chore: Move identity and errutil to apimachinery module (#89116) 2024-06-13 07:11:35 +03:00
dashboard.go Chore: Move identity and errutil to apimachinery module (#89116) 2024-06-13 07:11:35 +03:00
errors.go Zanzana: Initial dashboard search (#93093) 2024-10-04 12:27:10 +02:00
models_test.go Remove folderid service test (#80433) 2024-01-12 16:43:39 +01:00
models.go Zanzana: Initial dashboard search (#93093) 2024-10-04 12:27:10 +02:00
store_mock.go Dashboards: Add feature restore dashboards backend (#83131) 2024-05-16 14:36:26 -03:00