grafana/pkg/services/sqlstore
Emil Tullstedt 954a2811b3
Stats: Stop counting the same user multiple times (#26777)
* Stats: Cache based stats implementation

* Stats: Correct logic and add larger scale test

* Stats: linter

* Stats: SQL implementation

* Stats: cleanup SQL

* Stats: Tab -> Spaces

* Update pkg/services/sqlstore/stats.go

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

* Stats: Quote 'user' table with dialect.Quote

* Stats: Ensure test is run as integration test

* Stats: Use boolean value

...because if (v) { true } else { false } is unnecessary at best.

Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
2020-08-24 11:23:14 +02:00
..
migrations Alerting: Change settings column type to mediumtext (#26549) 2020-07-24 08:40:06 +03:00
migrator SQLite: Set 0640 permissions on SQLite database file (#26339) 2020-07-23 15:47:26 +02:00
permissions Chore: Start harmonizing linting with plugin SDK (#25854) 2020-06-29 14:08:32 +02:00
searchstore Chore: Start harmonizing linting with plugin SDK (#25854) 2020-06-29 14:08:32 +02:00
sqlutil Chore: Enable PR testing in Drone (#26189) 2020-07-10 16:09:21 +02:00
alert_notification_test.go Chore: Fix tests for Go 1.15 (#26957) 2020-08-12 17:45:03 +02:00
alert_notification.go Alerting: Support storing sensitive notifier settings securely/encrypted (#25114) 2020-07-08 10:17:05 +02:00
alert_test.go chore: avoid aliasing imports in services (#22499) 2020-02-29 13:35:15 +01:00
alert.go chore: avoid aliasing imports in services (#22499) 2020-02-29 13:35:15 +01:00
annotation_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
annotation.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
apikey_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
apikey.go API: Optionally list expired keys (#20468) 2019-11-20 13:14:57 +02:00
dashboard_acl_test.go chore: avoid aliasing imports in services (#22499) 2020-02-29 13:35:15 +01:00
dashboard_acl.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
dashboard_folder_test.go pkg/services: Check errors (#19712) 2019-10-22 14:08:18 +02:00
dashboard_provisioning_test.go Provisioning: Show file path of provisioning file in save/delete dialogs (#16706) 2019-04-30 13:32:18 +02:00
dashboard_provisioning.go Provisioning: Show file path of provisioning file in save/delete dialogs (#16706) 2019-04-30 13:32:18 +02:00
dashboard_service_integration_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
dashboard_snapshot_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
dashboard_snapshot.go Chore: Enable Go linter gocritic (#26224) 2020-07-16 14:39:01 +02:00
dashboard_test.go Search: Support multiple order filters (#24230) 2020-05-06 11:42:52 +02:00
dashboard_version_test.go delete old dashboard versions in multiple batches (#23348) 2020-04-06 11:44:14 -04:00
dashboard_version.go delete old dashboard versions in multiple batches (#23348) 2020-04-06 11:44:14 -04:00
dashboard.go Search: Support multiple order filters (#24230) 2020-05-06 11:42:52 +02:00
datasource_test.go Provisioning: Allows specifying uid for datasource and use that in derived fields (#23585) 2020-04-20 15:48:38 +02:00
datasource.go Data sources: Use SQL store directly, not via bus (#27000) 2020-08-21 09:30:06 +02:00
health.go chore: avoid aliasing imports in services (#22499) 2020-02-29 13:35:15 +01:00
logger.go Chore: Update the xorm dependency (#22376) 2020-04-01 15:57:21 +02:00
login_attempt_test.go chore: avoid aliasing imports in services (#22499) 2020-02-29 13:35:15 +01:00
login_attempt.go chore: avoid aliasing imports in services (#22499) 2020-02-29 13:35:15 +01:00
org_test.go API: Support paging in the admin orgs list API (#26932) 2020-08-12 10:59:07 +03:00
org_users.go chore: avoid aliasing imports in services (#22499) 2020-02-29 13:35:15 +01:00
org.go SQL: Fix missing org error messages (#26785) 2020-08-04 17:06:37 +02:00
playlist_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
playlist.go chore: avoid aliasing imports in services (#22499) 2020-02-29 13:35:15 +01:00
plugin_setting.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
preferences_test.go pkg/services: Check errors (#19712) 2019-10-22 14:08:18 +02:00
preferences.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
quota_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
quota.go Chore: Enable Go linter gocritic (#26224) 2020-07-16 14:39:01 +02:00
session.go Server: Add health check route (#26999) 2020-08-18 14:58:08 +02:00
sql_test_data.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
sqlbuilder_test.go Chore: Fix tests for Go 1.15 (#26957) 2020-08-12 17:45:03 +02:00
sqlbuilder.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
sqlstore_test.go Chore: Disable scopelint for tests (#25923) 2020-06-30 11:05:47 +02:00
sqlstore.go Data sources: Use SQL store directly, not via bus (#27000) 2020-08-21 09:30:06 +02:00
sqlstore.goconvey feat(invite): small progress 2015-07-17 14:42:49 +02:00
star.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
stars_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
stats_integration_test.go Stats: Stop counting the same user multiple times (#26777) 2020-08-24 11:23:14 +02:00
stats_test.go Stats: Stop counting the same user multiple times (#26777) 2020-08-24 11:23:14 +02:00
stats.go Stats: Stop counting the same user multiple times (#26777) 2020-08-24 11:23:14 +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 Alerting: Add tags to alert rules (#10989) 2019-06-06 13:29:30 +02:00
tags.go Chore: Enable Go linter gocritic (#26224) 2020-07-16 14:39:01 +02:00
team_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
team.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
temp_user_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
temp_user.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
tls_mysql.go add support for periodically reloading mysql client certs (#14892) 2019-05-16 13:45:22 +02:00
transactions_test.go Upgrade golangci-lint and fixes some linting errors. (#22909) 2020-03-23 13:37:53 +01:00
transactions.go Server: Add health check route (#26999) 2020-08-18 14:58:08 +02:00
user_auth_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
user_auth.go OAuth: Fix for wrong user token updated on OAuth refresh in DS proxy (#17541) 2019-06-12 13:47:38 +02:00
user_test.go Users: Improve conflict error handling (#26958) 2020-08-13 14:38:54 +02:00
user.go Users: Improve conflict error handling (#26958) 2020-08-13 14:38:54 +02:00