grafana/pkg/services/sqlstore
Eric Leijonmarck 421f7a999a
Auth: Case insensitive ids duplicate usagestats (#50724)
* WIP

* update for prometheus

* usagestats: tests pass for user duplicate entries

* metrics: added duplicate user entries

* usagestats: adds metrics gauge for duplicate users

* usagestats: skip test for mysql

* sql in oneplace

* only use prometheus register to not panic

* usagestats: RegisterMetricsFunc with loginstats

* fix: remove unused commited code

* refactor: move test to authinfoservice

* Update pkg/models/stats.go

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>

* removed prometheus metrics, due to sql cpu requirement

* Added: has_duplicate_user_entries and fix tests

* remove unused test

* fix: empty else statement removal

* missing argument to authinfoservice

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
2022-06-22 14:16:28 +02:00
..
db Dashboards: Split GetDashboardVersions method (#49967) 2022-06-02 15:59:05 +02:00
migrations backend: add PlaylistUIDs to Playlist; remove playlist IDs from API (#49609) 2022-06-14 15:32:52 -04:00
migrator Chore: Remove Wrapf (#50128) 2022-06-06 22:30:31 +02:00
mockstore Auth: Case insensitive ids duplicate usagestats (#50724) 2022-06-22 14:16:28 +02:00
permissions Access Control: Move dashboard actions and create scope provider (#48618) 2022-05-04 16:12:09 +02:00
searchstore Search (SQL): support dashboardUID query parameter (#50121) 2022-06-02 12:56:01 -07:00
sqlutil Chore: Add CloudWatch HTTP API tests (#29691) 2021-01-07 11:36:13 +01:00
alert_notification_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
alert_notification.go Chore: Remove final x from sqlstore (#48086) 2022-04-25 13:07:11 -04:00
alert_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
alert.go Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
annotation_cleanup_test.go Chore: Remove final x from sqlstore (#48086) 2022-04-25 13:07:11 -04:00
annotation_cleanup.go Chore: Remove final x from sqlstore (#48086) 2022-04-25 13:07:11 -04:00
annotation_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
annotation.go Access control: further reduce access control feature toggle checks (#48171) 2022-05-05 17:31:14 +02:00
apikey_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
apikey.go Service accounts: Migrate expired API keys (#50883) 2022-06-16 16:01:50 +02:00
dashboard_thumbs_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
dashboard_thumbs.go Previews: capability check (#44601) 2022-02-16 21:49:50 +04:00
database_wrapper.go Tracing: Use common traceID context value for opentracing and opentelemetry (#46411) 2022-04-14 17:54:49 +02:00
datasource_test.go Chore: Remove global bus variable (#50765) 2022-06-14 16:07:41 +02:00
datasource.go Secrets: add better error handling for secret plugin failures when updating datasources (#50542) 2022-06-16 12:26:57 -04:00
health_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
health.go Chore: Remove x from health, alert notification, dashboard, stats, user (#45265) 2022-02-17 16:59:09 +01:00
logger.go Chore: Update the xorm dependency (#22376) 2020-04-01 15:57:21 +02:00
login_attempt_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
login_attempt.go Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
org_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
org_users_test.go AccessControl: Enable RBAC by default (#48813) 2022-05-16 12:45:41 +02:00
org_users.go AccessControl: Replace IsEnterprise checks with license checks (#49572) 2022-05-25 20:40:41 +02:00
org.go Chore: Remove global bus variable (#50765) 2022-06-14 16:07:41 +02:00
playlist_test.go backend: add PlaylistUIDs to Playlist; remove playlist IDs from API (#49609) 2022-06-14 15:32:52 -04:00
playlist.go backend: add PlaylistUIDs to Playlist; remove playlist IDs from API (#49609) 2022-06-14 15:32:52 -04:00
plugin_setting_test.go Chore: Remove global bus variable (#50765) 2022-06-14 16:07:41 +02:00
plugin_setting.go Plugins: Fix problematic query (#46777) 2022-03-21 15:42:05 +01:00
quota_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
quota.go Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
session.go Chore: Remove x from session (#48074) 2022-04-21 13:20:18 -04:00
sqlbuilder_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
sqlbuilder.go Remove unnecesary joins from queries (#43626) 2022-01-04 13:04:02 +01:00
sqlstore_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
sqlstore.go Chore: Make test tracer noop and return no errors (#50797) 2022-06-15 12:40:41 +02:00
sqlstore.goconvey feat(invite): small progress 2015-07-17 14:42:49 +02:00
stats_integration_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
stats_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
stats.go Encryption: Add support for multiple data keys per day (#47765) 2022-05-23 13:13:55 +02:00
store.go Auth: Case insensitive ids duplicate usagestats (#50724) 2022-06-22 14:16:28 +02:00
tables.go Began work on real sql schema definitions, and migration engine 2015-01-17 21:40:22 +01:00
tags_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
tags.go Chore: Enable Go linter gocritic (#26224) 2020-07-16 14:39:01 +02:00
team_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
team.go RBAC: Make RBAC action names more consistent (#49730) 2022-06-02 13:14:48 +01:00
temp_user_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
temp_user.go Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
tls_mysql.go Chore: Fix staticcheck issues (#28854) 2020-11-05 11:57:20 +01:00
transactions_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
transactions.go Chore: Remove global bus variable (#50765) 2022-06-14 16:07:41 +02:00
user_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
user.go clean up duplicated user creation code (#50178) 2022-06-07 09:49:18 -04:00