grafana/pkg/services/sqlstore
Ieva 048d1e7c86
RBAC: Annotation permission migration (#78899)
* add annotation permissions to dashboard managed role and add migrations for annotation permissions

* fix a bug with conditional access level definitions

* add tests

* Update pkg/services/sqlstore/migrations/accesscontrol/dashboard_permissions.go

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

* apply feedback

* add batching, fix tests and a typo

* add one more test

* undo unneeded change

* undo unwanted change

* only check the default basic permissions for non-OSS instances

* account for all wildcards and simplify the check a bit

* error handling and extra conditionals to avoid test failures

* fix a bug with admin permissions not appearing for folders

* fix the OSS check

---------

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2024-01-26 17:17:29 +00:00
..
migrations RBAC: Annotation permission migration (#78899) 2024-01-26 17:17:29 +00:00
migrator Folders: Introduce folder service function for fetching folders by org and UIDs that contain optionally the folder full path (#80716) 2024-01-25 09:27:13 +02:00
permissions Remove folderID from service tests (#80615) 2024-01-26 17:36:35 +02:00
searchstore RBAC: Change annotation filter to use dashboard based annotation scopes (#78635) 2023-11-29 05:34:44 -05:00
session Chore: add/update sqlstore-related helper functions (#77408) 2023-11-03 10:30:52 -04:00
sqlutil Chore: remove xorm from preference (#53803) 2022-08-17 22:07:20 -04:00
bulk_test.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
bulk.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
database_config_test.go Chore: Extract DatabaseConfig parsing from SQLStore (#81157) 2024-01-24 16:49:49 +01:00
database_config.go Chore: Extract DatabaseConfig parsing from SQLStore (#81157) 2024-01-24 16:49:49 +01:00
database_wrapper.go Tracing: Standardize on otel tracing (#75528) 2023-10-03 14:54:20 +02:00
logger.go Chore: add/update sqlstore-related helper functions (#77408) 2023-11-03 10:30:52 -04:00
session_test.go SQLStore: Fix SQLite error propagation if query retries are disabled (#64904) 2023-03-17 12:57:13 +02:00
session.go Tracing: Standardize on otel tracing (#75528) 2023-10-03 14:54:20 +02:00
sqlstore_metrics_test.go Metrics: Fixed grafana_database_conn_* metrics, and added new go_sql_stats_* metrics as eventual replacement (#54405) 2022-08-31 08:54:32 -04:00
sqlstore_metrics.go Metrics: Fixed grafana_database_conn_* metrics, and added new go_sql_stats_* metrics as eventual replacement (#54405) 2022-08-31 08:54:32 -04:00
sqlstore_test.go Chore: Extract DatabaseConfig parsing from SQLStore (#81157) 2024-01-24 16:49:49 +01:00
sqlstore.go Chore: Extract DatabaseConfig parsing from SQLStore (#81157) 2024-01-24 16:49:49 +01:00
tls_mysql.go Chore: Extract DatabaseConfig parsing from SQLStore (#81157) 2024-01-24 16:49:49 +01:00
transactions_test.go SQLStore: Add test for nested transactions events (#60500) 2023-01-23 14:17:56 +01:00
transactions.go SQLStore: Add test for nested transactions events (#60500) 2023-01-23 14:17:56 +01:00
user_test.go Bug(sqlstore): fix issue with postgres unable to find existing main organization (#73789) 2023-08-30 11:45:20 -04:00
user.go Bug(sqlstore): fix issue with postgres unable to find existing main organization (#73789) 2023-08-30 11:45:20 -04:00