grafana/pkg/services/comments
Ieva ef4c2672b3
Access control: SQL filtering for annotation listing (#47467)
* pass in user to attribute scope resolver

* add SQL filter to annotation listing

* check annotation FGAC permissions before exposing them for commenting

* remove the requirement to be able to list all annotations from annotation listing endpoint

* adding tests for annotation listing

* remove changes that got moved to a different PR

* unused var

* Update pkg/services/sqlstore/annotation.go

Co-authored-by: Ezequiel Victorero <evictorero@gmail.com>

* remove unneeded check

* remove unneeded check

* undo accidental change

* undo accidental change

* doc update

* move tests

* redo the approach for passing the user in for scope resolution

* accidental change

* cleanup

* error handling

Co-authored-by: Ezequiel Victorero <evictorero@gmail.com>
2022-04-11 13:18:38 +01:00
..
commentmodel Access control: SQL filtering for annotation listing (#47467) 2022-04-11 13:18:38 +01:00
handlers.go Comments: support live comments in dashboards and annotations (#44980) 2022-02-22 10:47:42 +03:00
service.go Comments: support live comments in dashboards and annotations (#44980) 2022-02-22 10:47:42 +03:00
sql_storage_test.go Comments: support live comments in dashboards and annotations (#44980) 2022-02-22 10:47:42 +03:00
sql_storage.go Comments: support live comments in dashboards and annotations (#44980) 2022-02-22 10:47:42 +03:00
storage.go Comments: support live comments in dashboards and annotations (#44980) 2022-02-22 10:47:42 +03:00