grafana/pkg/services/sqlstore
Ieva cfa1a2c55f
RBAC: Split non-empty scopes into kind, attribute and identifier fields for better search performance (#71933)
* add a feature toggle

* add the fields for attribute, kind and identifier to permission

Co-authored-by: Kalle Persson <kalle.persson@grafana.com>

* set the new fields when new permissions are stored

* add migrations

Co-authored-by: Kalle Persson <kalle.persson@grafana.com>

* remove comments

* Update pkg/services/accesscontrol/migrator/migrator.go

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

* feedback: put column migrations behind the feature toggle, added an index, changed how wildcard scopes are split

* PR feedback: add a comment and revert an accidentally changed file

* PR feedback: handle the case with : in resource identifier

* switch from checking feature toggle through cfg to checking it through featuremgmt

* don't put the column migrations behind a feature toggle after all - this breaks permission queries from db

---------

Co-authored-by: Kalle Persson <kalle.persson@grafana.com>
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2023-07-21 15:23:01 +01:00
..
migrations RBAC: Split non-empty scopes into kind, attribute and identifier fields for better search performance (#71933) 2023-07-21 15:23:01 +01:00
migrator SQLStore: Fix Postgres dialect treating "false" migrator default as true (#69353) 2023-06-22 15:09:36 -04:00
permissions RBAC: search v1 permission filter part 1 - cleanup & updating tests (#71913) 2023-07-19 10:37:27 +01:00
searchstore RBAC: search v1 permission filter part 1 - cleanup & updating tests (#71913) 2023-07-19 10:37:27 +01:00
session SQLX: Expose sqlxdb query functions (#57227) 2022-10-19 07:33:40 -07:00
sqlutil Chore: remove xorm from preference (#53803) 2022-08-17 22:07:20 -04:00
bulk_test.go Build: clean up and document integration test convention (#58170) 2022-11-04 10:14:21 -04:00
bulk.go SQLStore: Create utility for bulk inserts (#57632) 2022-11-01 13:24:32 -05:00
database_wrapper.go Traces: Fix timestamp for database query traces (#61109) 2023-01-09 09:40:55 -05:00
logger.go Chore: Fix goimports grouping in pkg/services (#62420) 2023-01-30 08:21:27 +00: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 SQLStore: Fix SQLite error propagation if query retries are disabled (#64904) 2023-03-17 12:57:13 +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 SQLStore: Fix regression in PostgreSQL connection string (#71368) 2023-07-11 16:47:35 +03:00
sqlstore.go SQLStore: Fix regression in PostgreSQL connection string (#71368) 2023-07-11 16:47:35 +03:00
tls_mysql.go Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02: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.go Chore: Ignore unique constrain failure when creating the main organization (#68644) 2023-05-18 11:26:29 +03:00