grafana/pkg/api
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
..
apierrors Plugins: Refactor plugin dashboards (#44315) 2022-01-28 10:28:33 +01:00
avatar Dashboard: Mix initials and custom gravatars in recent viewers list (#47212) 2022-04-05 22:56:17 -04:00
datasource Check for empty URLs when creating/updating a data source (#42837) 2022-01-31 12:39:55 -03:00
docs Add endpoint with UID for dashboard permissions (#47753) 2022-04-21 16:24:03 +02:00
dtos Implement preference service (#47870) 2022-04-21 15:03:17 +02:00
frontendlogging Logger migration from log15 to gokit/log (#41636) 2022-01-06 22:28:05 +08:00
navlinks show admin nav link it the user only has permissions to view licensing and not other pages under admin node (#41948) 2021-11-19 11:02:13 +00:00
pluginproxy Secrets: Implement basic unified secret store service (#45804) 2022-04-25 13:57:45 -03:00
response fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
routing Instrumentation: Fix HTTP request instrumentation of authentication failures (#44234) 2022-02-02 18:48:46 +01:00
static API: Extract OpenAPI specification from source code using go-swagger (#40528) 2022-02-08 13:38:43 +01:00
accesscontrol.go Update API Keys UI to adjust based on users permissions (#47802) 2022-04-20 09:45:45 +02:00
admin_provisioning_test.go Chore: Add context to org (#40685) 2021-11-03 11:31:56 +01:00
admin_provisioning.go Chore: Remove Dispatch and AddHandler (#42603) 2021-12-02 18:08:59 +01:00
admin_test.go Chore: Remove bus from admin (#44920) 2022-02-04 17:53:58 +01:00
admin_users_test.go Chore: Remove bus.Bus field (#47695) 2022-04-13 15:24:13 +02:00
admin_users.go fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
admin.go fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
alerting_test.go Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
alerting.go fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
annotations_test.go Rename FGAC to RBAC in the codebase (#48051) 2022-04-21 14:31:02 +02:00
annotations.go Access control: refactor RBAC checks (#48107) 2022-04-25 10:42:09 +02:00
api.go Export: introduce export plumbing (behind dev feature flag) (#48091) 2022-04-25 16:59:18 -07:00
apikey.go fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
app_routes.go Instrumentation: Proxy status code correction and various improvements (#47473) 2022-04-11 13:17:08 +02:00
basic_auth_test.go Macaron: remove custom Request type (#37874) 2021-09-01 11:18:30 +02:00
basic_auth.go Macaron: remove custom Request type (#37874) 2021-09-01 11:18:30 +02:00
comments.go fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
common_test.go Implement preference service (#47870) 2022-04-21 15:03:17 +02:00
dashboard_permission_test.go Access control: refactor RBAC checks (#48107) 2022-04-25 10:42:09 +02:00
dashboard_permission.go Access control: refactor RBAC checks (#48107) 2022-04-25 10:42:09 +02:00
dashboard_snapshot_test.go Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
dashboard_snapshot.go fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
dashboard_test.go Implement preference service (#47870) 2022-04-21 15:03:17 +02:00
dashboard.go Search: in-memory index (#47709) 2022-04-27 12:29:39 +04:00
dataproxy.go API: enable proxying datasource calls using the datasource UID (#47634) 2022-04-14 13:28:13 +03:00
datasources_test.go Secrets: Implement basic unified secret store service (#45804) 2022-04-25 13:57:45 -03:00
datasources.go Secrets: Implement tests and debug log improvements on unified secrets (#48213) 2022-04-25 15:12:44 -03:00
fakes.go Plugins: Plugin Store API returns DTO model (#41340) 2021-11-17 12:04:22 +01:00
folder_permission_test.go Access control: refactor RBAC checks (#48107) 2022-04-25 10:42:09 +02:00
folder_permission.go Access control: refactor RBAC checks (#48107) 2022-04-25 10:42:09 +02:00
folder_test.go Chore: Remove bus.Bus field (#47695) 2022-04-13 15:24:13 +02:00
folder.go fix argument ordering (#48124) 2022-04-25 15:26:46 +02:00
frontend_logging_test.go Security: Sync security changes on main (#45083) 2022-02-09 13:44:38 +01:00
frontend_logging.go Logger migration from log15 to gokit/log (#41636) 2022-01-06 22:28:05 +08:00
frontend_metrics.go Chore: Report frontend metrics for JS/CSS load time (#42421) 2021-12-02 09:34:39 +01:00
frontendsettings_test.go Chore: Remove bus.Bus field (#47695) 2022-04-13 15:24:13 +02:00
frontendsettings.go Secrets: Implement basic unified secret store service (#45804) 2022-04-25 13:57:45 -03:00
grafana_com_proxy.go Instrumentation: Proxy status code correction and various improvements (#47473) 2022-04-11 13:17:08 +02:00
health_test.go Chore: Remove bus from health api (#44897) 2022-02-04 14:33:35 +01:00
health.go Chore: Remove bus from health api (#44897) 2022-02-04 14:33:35 +01:00
http_server_test.go Plugins: Make backend plugin metrics endpoints available with optional authentication (#46467) 2022-03-29 11:18:26 +02:00
http_server.go Search: in-memory index (#47709) 2022-04-27 12:29:39 +04:00
index.go move saved items feature behind separate feature toggle (#48117) 2022-04-26 11:27:01 +01:00
ldap_debug_test.go Tracing: Use common traceID context value for opentracing and opentelemetry (#46411) 2022-04-14 17:54:49 +02:00
ldap_debug.go LDAP: Fix debug view to display the actual computed mapping in ldap.go (#48103) 2022-04-22 15:45:54 +02:00
login_oauth_test.go Chore: Remove bus.Bus field (#47695) 2022-04-13 15:24:13 +02:00
login_oauth.go Chore: add setting to skip org assignment for external users (#34834) 2022-02-21 17:34:47 +01:00
login_test.go Chore: Remove bus.Dispatch from some login packages (#47248) 2022-04-04 20:36:15 +02:00
login.go fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
metrics_test.go Secrets: Implement basic unified secret store service (#45804) 2022-04-25 13:57:45 -03:00
metrics.go Plugins: Add deprecation notice for /api/tsdb/query endpoint (#45238) 2022-03-30 17:46:06 +02:00
org_invite.go fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
org_test.go ValidatedQueries: start of validated queries API (#44731) 2022-03-07 09:33:01 -09:00
org_users_test.go ValidatedQueries: start of validated queries API (#44731) 2022-03-07 09:33:01 -09:00
org_users.go fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
org.go Chore: Remove final x from sqlstore (#48086) 2022-04-25 13:07:11 -04:00
password.go fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
playlist_play.go Chore: Remove bus from signup and playlist api (#44485) 2022-01-27 10:33:02 +01:00
playlist.go fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
plugin_dashboards_test.go Plugins: Refactor GetPluginDashboards/LoadPluginDashboard (#46316) 2022-03-10 18:38:04 +01:00
plugin_dashboards.go Plugins: Refactor GetPluginDashboards/LoadPluginDashboard (#46316) 2022-03-10 18:38:04 +01:00
plugin_metrics_test.go Plugins: Make backend plugin metrics endpoints available with optional authentication (#46467) 2022-03-29 11:18:26 +02:00
plugin_metrics.go Plugins: Make backend plugin metrics endpoints available with optional authentication (#46467) 2022-03-29 11:18:26 +02:00
plugins_test.go Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
plugins.go fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
preferences_test.go Implement preference service (#47870) 2022-04-21 15:03:17 +02:00
preferences.go Implement preference service (#47870) 2022-04-21 15:03:17 +02:00
quota_test.go ValidatedQueries: start of validated queries API (#44731) 2022-03-07 09:33:01 -09:00
quota.go fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
render.go Dash previews: populate crawler queue from SQL query (#44083) 2022-02-09 13:23:32 +04:00
search.go fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
short_url_test.go Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
short_url.go fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
signup.go fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
stars.go Chore: Remove bus from team (#44218) 2022-01-24 11:52:35 +01:00
swagger.go fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
team_members_test.go Rename FGAC to RBAC in the codebase (#48051) 2022-04-21 14:31:02 +02:00
team_members.go Access control: refactor RBAC checks (#48107) 2022-04-25 10:42:09 +02:00
team_test.go Implement preference service (#47870) 2022-04-21 15:03:17 +02:00
team.go Access control: refactor RBAC checks (#48107) 2022-04-25 10:42:09 +02:00
user_test.go Chore: Remove bus.Bus field (#47695) 2022-04-13 15:24:13 +02:00
user_token_test.go Chore: Remove bus.Bus field (#47695) 2022-04-13 15:24:13 +02:00
user_token.go fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
user.go fix status code 200 (#47818) 2022-04-15 08:01:58 -04:00
utils.go Permissions: Validate against Team/User permission role update (#29101) 2020-11-18 15:36:41 +01:00