grafana/pkg/services/folder
Alexander Zobnin a39242890e
Folders: Able to fetch folders available for user as "shared" folder (#77774)
* Folders: Show folders user has access to at the root level

* Refactor

* Refactor

* Hide parent folders user has no access to

* Skip expensive computation if possible

* Fix tests

* Fix potential nil access

* Fix duplicated folders

* Fix linter error

* Fix querying folders if no managed permissions set

* Update benchmark

* Add special shared with me folder and fetch available non-root folders on demand

* Fix parents query

* Improve db query for folders

* Reset benchmark changes

* Fix permissions for shared with me folder

* Simplify dedup

* Add option to include shared folder permission to user's permissions

* Fix nil UID

* Remove duplicated folders from shared list

* Only left the base part

* Apply suggestions from code review

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>

* Add tests

* Fix linter errors

---------

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2023-11-08 15:28:49 +01:00
..
folderimpl Folders: Able to fetch folders available for user as "shared" folder (#77774) 2023-11-08 15:28:49 +01:00
foldertest Dashboards+Folder: remove unused function MakeUserAdmin (#73635) 2023-08-23 12:54:06 +02:00
model.go Revert "Nested Folders: Fix fetching a folder by title" (#76469) 2023-10-12 18:31:49 +03:00
registry.go Identity: Port folder library to identity.Requester (#76105) 2023-10-06 15:02:34 +02:00
service.go Dashboards: Fix creating dashboard under folder using deprecated API (#77501) 2023-11-01 17:01:54 +02:00