grafana/pkg/services/sqlstore
Artur Wierzbicki 25e153e4e7
Search: in-memory index (#47709)
* #45498: add entity events table

* #45498: add entity events service

* #45498: hook up entity events service to http server

* #45498: use `dashboards.id` rather than `uid` and `org_id` in grn

* Update pkg/services/entityevents/service.go

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>

* #45498: move entityeventsservice to services/store

* #45498: add null check

* #45498: rename

* #45498: fix comment

* #45498: switch grn back to uid

* Search: listen for updates (#47719)

* #45498: wire entity event service with searchv2

* load last event id before building index for org 1

* fix service init in integration tests

* depend on required subset of event store methods

* Update pkg/services/sqlstore/migrations/entity_events_mig.go

Co-authored-by: Alexander Emelin <frvzmb@gmail.com>

* #45498: pointer receiver

* #45498: mockery!

* #45498: add entity events service to background services

* dashboard query pagination, allow queries while re-indexing

* log level cleanups, use rlock, add comments

* fix lint, check feature toggle in search v2 service

* use unix time for event created column

* add missing changes for created column

* fix integration tests init

* log re-index execution times on info level

* #45498: fix entityEventsService tests

* #45498: save events on dashboard delete

* use camel case for log labels

* formatting

* #45498: rename grn to entityid

* #45498: add `IsDisabled` to entityEventsService

* #45498: remove feature flag from migration

* better context usage, fix capacity, comments/cleanups

* replace print with logger

* Revert "#45498: remove feature flag from migration"

This reverts commit ed23968898.

* revert:revert:revert conditional feature flag

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Alexander Emelin <frvzmb@gmail.com>
2022-04-27 12:29:39 +04:00
..
db Add fakes for db interface (#46885) 2022-03-23 15:06:47 +01:00
migrations Search: in-memory index (#47709) 2022-04-27 12:29:39 +04:00
migrator Search: sort results correctly when using postgres (#46466) 2022-03-15 15:08:40 +01:00
mockstore Chore: Remove final x from sqlstore (#48086) 2022-04-25 13:07:11 -04:00
permissions Alerting: handle folder permissions when fine-grained access enabled (#47035) 2022-04-01 19:33:26 -04:00
searchstore Alerting: handle folder permissions when fine-grained access enabled (#47035) 2022-04-01 19:33:26 -04:00
sqlutil Chore: Add CloudWatch HTTP API tests (#29691) 2021-01-07 11:36:13 +01:00
alert_notification_test.go Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
alert_notification.go Chore: Remove final x from sqlstore (#48086) 2022-04-25 13:07:11 -04:00
alert_test.go Chore: Remove bus from dashboard service (#46829) 2022-03-22 14:36:50 +01: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 Rename FGAC to RBAC in the codebase (#48051) 2022-04-21 14:31:02 +02:00
annotation.go Chore: Remove final x from sqlstore (#48086) 2022-04-25 13:07:11 -04:00
apikey_test.go Separate API key store from SA token store (#45862) 2022-02-28 11:30:45 +01:00
apikey.go Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
dashboard_acl.go Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
dashboard_provisioning.go Chore: Remove bus.Dispatch from provisioning services (#44989) 2022-02-23 11:12:37 +01:00
dashboard_snapshot_test.go Chore: Remove x from dashboard snapshots (#48001) 2022-04-21 08:20:47 -04:00
dashboard_snapshot.go Chore: Remove x from dashboard snapshots (#48001) 2022-04-21 08:20:47 -04:00
dashboard_thumbs_test.go Previews: capability check (#44601) 2022-02-16 21:49:50 +04:00
dashboard_thumbs.go Previews: capability check (#44601) 2022-02-16 21:49:50 +04:00
dashboard_version_test.go Dashboards: Refactor service to make it injectable by wire (#44588) 2022-02-16 14:15:44 +01:00
dashboard_version.go Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
dashboard.go Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02: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 AccessControl: Remove permissions on data source delete (#45504) 2022-02-17 14:06:34 +01:00
datasource.go Chore: fix comment (#45593) 2022-02-18 11:46:52 +01:00
health_test.go Chore: Remove bus from health api (#44897) 2022-02-04 14:33:35 +01: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: Remove x from login attempt (#46853) 2022-03-24 17:00:41 +00:00
login_attempt.go Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
org_test.go Chore: Remove final x from sqlstore (#48086) 2022-04-25 13:07:11 -04:00
org_users_test.go Users: clean up OrgId when all user orgs are removed (#46003) 2022-04-06 08:35:58 +02:00
org_users.go Chore: Remove x from Org User (#47850) 2022-04-19 10:55:49 -04:00
org.go Chore: Remove final x from sqlstore (#48086) 2022-04-25 13:07:11 -04:00
playlist_test.go Chore: Add context to playlist (#41337) 2021-11-19 14:32:14 +01:00
playlist.go Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
plugin_setting_test.go Chore: Add tests for plugin settings sqlstore (#46792) 2022-03-22 15:34:27 +01:00
plugin_setting.go Plugins: Fix problematic query (#46777) 2022-03-21 15:42:05 +01:00
quota_test.go Chore: Remove final x from sqlstore (#48086) 2022-04-25 13:07:11 -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 Dashboards: Refactor service to make it injectable by wire (#44588) 2022-02-16 14:15:44 +01:00
sqlbuilder.go Remove unnecesary joins from queries (#43626) 2022-01-04 13:04:02 +01:00
sqlstore_test.go Chore: update all +build statements (#38782) 2021-09-01 17:38:56 +03:00
sqlstore.go Search: in-memory index (#47709) 2022-04-27 12:29:39 +04:00
sqlstore.goconvey feat(invite): small progress 2015-07-17 14:42:49 +02:00
star.go Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
stars_test.go Chore: Add context to star and stats (#39591) 2021-09-28 17:54:45 +02:00
stats_integration_test.go Chore: Remove bus from admin (#44920) 2022-02-04 17:53:58 +01:00
stats_test.go Chore: Remove bus.Dispatch from provisioning services (#44989) 2022-02-23 11:12:37 +01:00
stats.go Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
store.go Chore: Remove final x from sqlstore (#48086) 2022-04-25 13:07:11 -04: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: Remove x from session (#48074) 2022-04-21 13:20:18 -04:00
tags.go Chore: Enable Go linter gocritic (#26224) 2020-07-16 14:39:01 +02:00
team_test.go Chore: Remove x from team (#47905) 2022-04-20 15:11:37 -04:00
team.go Chore: Remove final x from sqlstore (#48086) 2022-04-25 13:07:11 -04:00
temp_user_test.go Chore: Add context to temp user (#41284) 2021-11-04 11:17:07 +01: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 Reuse opened session in the context (#44939) 2022-02-08 09:02:23 -05:00
transactions.go Chore: Remove final x from sqlstore (#48086) 2022-04-25 13:07:11 -04:00
user_test.go Chore: Remove final x from sqlstore (#48086) 2022-04-25 13:07:11 -04:00
user.go Chore: Remove remaining x from user (#47854) 2022-04-18 15:19:01 -04:00