Serge Zaitsev
352905e195
Chore: Reassign some code ownership ( #77749 )
...
Chore: reassign codeowners
2023-11-06 20:56:44 +01:00
Serge Zaitsev
5458ea18e7
Chore: Use vendored xorm instead of a fork ( #77388 )
...
* use vendored xorm instead of a fork
* bring back mssql driver
* backport azuresql driver
* restore NoAutoTime
2023-11-06 16:09:49 +01:00
Serge Zaitsev and Sofia Papagiannaki
1d19dcd009
Chore: Update data migration to update rows that have changes ( #76545 )
...
* update data migration to update rows that have changes
* fix migration for sqlite
* remove id; fix postgres
* Fix for MySQL
* delete old items from folder table
* change integer to boolean
---------
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com >
2023-10-13 18:58:36 +02:00
Serge Zaitsev
7197ed9fbb
Fix: avoid panics on duplicate metrics registration ( #74359 )
2023-09-05 10:02:11 +02:00
Serge Zaitsev
93cdc94a94
Chore: capitalise logs in other backend packages ( #74344 )
...
* capitalise logs in observability logs
* capitalise oss-bit-tent packages
* capitalise logs in aws-datasources
* capitalise logs for traces and profiling
* capitalise logs for partner datasources
* capitalise logs in plugins platform
* capitalise logs for observability metrics
2023-09-04 22:25:43 +02:00
Serge Zaitsev
8187d8cb66
Chore: capitalise log message for auth packages ( #74332 )
2023-09-04 18:49:47 +02:00
Serge Zaitsev
58f6648505
Chore: capitalise messages for alerting ( #74335 )
2023-09-04 18:46:34 +02:00
Serge Zaitsev
bd12ce0cbc
Chore: capitalise log messages for app platform ( #74336 )
2023-09-04 18:46:08 +02:00
Serge Zaitsev and Charandas Batra
32defdb6bf
Fix: make apiserver work behind a feature toggle ( #73891 )
...
Co-authored-by: Charandas Batra <charandas.batra@grafana.com >
2023-09-01 22:31:51 +03:00
Serge Zaitsev
00893a158c
Chore: return a JSON on folder DELETE ( #73604 )
2023-08-24 18:10:58 +02:00
Serge Zaitsev and Sofia Papagiannaki
2bfef9e916
Tracing: Differentiate collector and agent better ( #71851 )
...
* differentiate collector and agent better
* Add back the max packet size
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com >
---------
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com >
2023-08-01 14:23:31 +02:00
Serge Zaitsev
7767ab6f43
Chore: Add folder data migration, fix unique index ( #72602 )
...
* add folder data migration, fix unique index
* fix unique index
* pass a fake store in tests
* pass store into other providers in tests
* and now with alerting!
2023-08-01 09:36:37 +02:00
Serge Zaitsev
c99225e5ef
Chore: Bump devenv postgres blocks version to 11.20 ( #71921 )
...
bump postgres version to the lowest supported as of now
2023-07-19 15:32:41 +02:00
Serge Zaitsev
47b2e7f1d7
Fix: Create store only once in cli mode ( #70391 )
...
fix: create store only once in cli mode
2023-06-20 17:28:42 +02:00
Serge Zaitsev and Sofia Papagiannaki
6d8f9c5bf4
Chore: Remove opentracing and use opentelemetry instead ( #67200 )
...
* remove opentracing and use otel instead
* add various samplers for jaeger
* remove useless test that is covered in otel now
* we do not need a struct there
* remove old tests
* restore tests that parse various configurations
* check errors in tests
* Update pkg/infra/tracing/tracing_test.go
fix typo
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com >
* add test for both legacy and new config formats
* use named constants
---------
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com >
2023-04-27 15:04:43 +02:00
Serge Zaitsev
391a192310
Chore: Try a different way to run integration tests ( #66653 )
...
* try a different way to run integration tests
* fix formatting
* clean test cache again
* use previous command
* playing around with random commands
* dont run tests in parallel yet
* use parallel option instead of gomaxprocs
* use same package set for redis/memcached; use p=1
2023-04-17 18:33:43 +02:00
Serge Zaitsev
f58a63b2df
Chore: Use time mocks in queryhistory to speed up tests ( #66644 )
...
* use time mocks in queryhistory to speed up tests
* remove comments
2023-04-17 12:02:47 +02:00
Serge Zaitsev
f19569d61d
Chore: Remove result field from search ( #65583 )
...
remove result field from search
2023-03-30 11:28:12 +02:00
Serge Zaitsev
2025c1dac1
Chore: Remove result field from stats ( #65166 )
...
remove result field from stats
2023-03-30 08:08:47 +02:00
Serge Zaitsev
4b551ae532
Chore: Remove result field from dashboards ( #65249 )
...
remove result field from dashboards
2023-03-30 07:29:52 +02:00
Serge Zaitsev
46605a3791
Chore: Fix authinfo api after result field removal ( #65487 )
...
fix authinfo api after result field removal
2023-03-28 23:12:57 +03:00
Serge Zaitsev
a38f230d37
Chore: Remove result fields from login ( #65136 )
...
* remove result fields from login
* fix tests
* fix tests
* another shadowing
2023-03-28 20:32:21 +02:00
Serge Zaitsev
b2ab57d14b
Chore: Remove result field from notifications ( #65170 )
...
* remove result field from notifications
* fix test
2023-03-28 13:44:15 +02:00
Serge Zaitsev
0beb768427
Chore: Remove result fields from ngalert ( #65410 )
...
* remove result fields from ngalert
* remove duplicate imports
2023-03-28 10:34:35 +02:00
Serge Zaitsev
51fdf37faa
Chore: Remove result field from loginattempt ( #65117 )
...
remove result field from loginattempt
2023-03-22 21:25:29 +01:00
Serge Zaitsev
e1d99365c1
Chore: Remove result fields from thumbs ( #65096 )
...
remove result fields from thumbs
2023-03-22 21:25:07 +01:00
Serge Zaitsev
743d66396a
Chore: Remove result field from API keys commands and queries ( #65055 )
...
* Chore: remove result field from api keys
* fix shadowing
* actually shadowing was all right
2023-03-21 13:26:33 +01:00
Serge Zaitsev
126c4a106e
Chore: Remove result field from remaining datasources queries ( #65054 )
...
remove result field from datasources
2023-03-20 19:18:21 +01:00
Serge Zaitsev
2d30f33ad8
Chore: Unite wire graphs for cli and server ( #61143 )
...
* Chore: unite wire graphs for cli and server
* remove cli wire once again
* try to fix runner wire injection
* unify runner initialisation
2023-03-17 16:36:39 +01:00
Serge Zaitsev
0bdb105df2
Chore: Remove xorcare/pointer dependency ( #63900 )
...
* Chore: remove pointer dependency
* fix type casts
* deprecate xorcare/pointer library in linter
* rooky mistake
2023-03-06 05:23:15 -05:00
Serge Zaitsev
2f8ee38c5e
Chore: Let wire inject prometheus.Registerer ( #62195 )
...
let wire inject prometheus.Registerer
2023-02-28 16:12:23 +01:00
Serge Zaitsev
b1c98f7119
Chore: Remove result field from alert commands and queries ( #62714 )
...
* remove result field from alert notification commands and queries
* fix a few more tests
* ok, linter
* remove alert result fields
* fix api calls
* et tu, linter
2023-02-02 09:41:05 +01:00
Serge Zaitsev
427db55204
Chore: Fix goimports order in RelEng packages ( #62481 )
...
fix goimports order
2023-01-30 15:53:38 +01:00
Serge Zaitsev
907e2a840e
Chore: Fix goimports grouping ( #62429 )
...
* fix goimports ordering
* fix goimports order
2023-01-30 09:57:50 +01:00
Serge Zaitsev
d6d4097567
Chore: Fix goimports grouping in alerting ( #62424 )
...
* fix goimports
* fix goimports order
2023-01-30 09:55:35 +01:00
Serge Zaitsev
0bf4093005
Chore: Fix goimports grouping ( #62428 )
...
* fix goimports order
* fix goimports order
2023-01-30 08:50:27 +00:00
Serge Zaitsev
f8ec35e643
Chore: Fix goimports grouping ( #62427 )
...
* fix goimports order
* fix goimports order
2023-01-30 09:38:51 +01:00
Serge Zaitsev
7dbd2cd139
Chore: Fix goimports grouping ( #62426 )
...
fix goimports ordering
2023-01-30 09:34:18 +01:00
Serge Zaitsev
f531074d89
Chore: Fix goimports grouping in pkg/infra ( #62421 )
...
* fix goimports
* fix goimports order
2023-01-30 08:32:25 +00:00
Serge Zaitsev
aebcecf538
Chore: Fix goimports grouping in other backend platform packages ( #62422 )
...
* fix goimports
* fix goimports order
* fix goimports order
* fix goimports order
* fix goimports order
* fix goimports order
2023-01-30 08:26:42 +00:00
Serge Zaitsev
e2d49ea17f
Chore: Fix goimports grouping ( #62423 )
...
* fix goimports
* fix goimports order
2023-01-30 08:25:58 +00:00
Serge Zaitsev
bc2813ef06
Chore: Fix goimports grouping in pkg/services ( #62420 )
...
* fix goimports
* fix goimports order
2023-01-30 08:21:27 +00:00
Serge Zaitsev
324310abbc
Chore: Fix goimports grouping in pkg/api ( #62419 )
...
* fix goimports
* fix goimports order
2023-01-30 08:18:26 +00:00
Serge Zaitsev
fa36591380
Chore: Remove mockstore and use dbtest instead ( #61629 )
...
* remove mockstore and use dbtest instead
* fix wire
* remove unused expected fields
* fix more tests in alerting
* fix api tests
2023-01-18 16:01:25 +01:00
Serge Zaitsev
efed0151f8
Chore: Remove pkg/models/stats.go ( #61613 )
...
* remove pkg/models/stats.go
* rename models package in tests
2023-01-17 14:17:54 +01:00
Serge Zaitsev
7e51eac740
Chore: Remove unused models ( #61533 )
...
* Chore: Remove unused models
* put AuthModuleConversion back
2023-01-16 12:52:55 +01:00
Serge Zaitsev
1d12dda7db
Chore: Update CODEOWNERS ( #60724 )
...
* Chore: Update CODEOWNERS
* remove comment
2022-12-23 08:46:17 -05:00
Serge Zaitsev
af7d293eaf
Chore: Remove Store interface and use db.DB instead ( #60160 )
...
* Chore: Remove Store interface and use db.DB instead
* use old-style session exec
2022-12-13 11:03:36 +01:00
Serge Zaitsev
43f40e6c7c
Chore: Replace yaml.v2 with yaml.v3 ( #59897 )
...
* replace yaml.v2 with yaml.v3
* fix a few tests due to the yaml.v3 api changes
* and another goconvey mistake in tests
2022-12-06 21:17:17 +01:00
Serge Zaitsev
f1fb202284
Chore: Add encryption codec to the remote cache ( #59871 )
...
* add encryption codec to the remote cache
* change config files too
* fix test constructor
* pass codec into the test cache
2022-12-06 15:12:27 +01:00
Serge Zaitsev
3978502d83
Chore: Remote cache key prefix ( #59838 )
...
* attempt to implement a remote cache key prefix
* add a test for the prefix store
* oh, linter
2022-12-06 13:20:49 +01:00
Serge Zaitsev
b3284a8330
Chore: Make getUserOrgList private to sqlstore ( #59654 )
...
* make getUserOrgList private in sqlstore
* make other identifiers private
2022-12-01 15:46:42 +01:00
Serge Zaitsev
5f3291be03
Chore: remove GetTeamByUser ( #59604 )
...
here goes some unused code
2022-11-30 20:02:31 +01:00
Serge Zaitsev
9cdb6b07c7
Chore: Move stats service into a standalone packge from sqlstore ( #59574 )
...
* move original stats service into a separate package
* add stats service to wire
* move GetAdminStats
* switch to using stats.Service
* add missing package
* fix api tests
2022-11-30 18:11:07 +01:00
Serge Zaitsev
57fbe264ea
Chore: Remove CreateOrg from alerting and use orgStore instead ( #59440 )
2022-11-29 09:59:03 +01:00
Serge Zaitsev
5b861faec3
Chore: Reduce the usage of sqlstore.createorg and use orgservice instead ( #59356 )
...
* remove legacy createorg from org service
* remove another createorg from orgimpl
* remove createorg from api pref tests
* remove createorg from api org tests
* fix tests
* remove createorg from annotations test
* remove createorg from team tests
* remove createorg from service accounts
* remove createorg from accesscontrol tests
* remove createorg from provisioning
* Use quotaservice from sc.hs
2022-11-28 12:05:46 +01:00
Serge Zaitsev
cff36ea7d8
Chore: Remove unused method from sqlstore ( #59156 )
...
remove unused method
2022-11-24 05:21:06 -05:00
Serge Zaitsev
c2e847d0b0
Chore: Remove createorgwithmember ( #59161 )
...
remove createorgwithmember
2022-11-23 10:37:04 +01:00
Serge Zaitsev
245a59548c
Chore: Remove DeleteOrg method from sqlstore ( #59162 )
...
remove DeleteOrg method from sqlstore
2022-11-23 10:22:52 +01:00
Serge Zaitsev
b875ca08c6
SQLStore: Make addOrgUser private ( #59142 )
...
make addOrgUser private
2022-11-22 17:02:39 +00:00
Serge Zaitsev
7ff41cde9a
Chore: Fix status codes for nested folders ( #59087 )
...
* check for errutil errors first
* a better fix
2022-11-22 16:06:39 +02:00
Serge Zaitsev
53baecd71f
Chore: Move folder service into a separate package ( #56591 )
...
* Chore: move folder service interface into a separate package
* copy implementation into a standalone package
* move implementation and tests to the new folder package
* remove leftovers from wire
* add test doubles for folder service
* fix tests in library panels/elements
* fix provideservice in ngalert
2022-10-10 21:47:53 +02:00
Serge Zaitsev
169610fd27
Chore: Reduce test timeouts to 5 minutes ( #56599 )
2022-10-10 09:26:47 +02:00
Serge Zaitsev
4c19e83ff0
Chore: Move team store implementation to a separate package ( #55514 )
...
* Chore: move team store implementation to a separate package
* trying to fix more tests
* fix tests in service accounts and access control
* fix common tests
* restore commented out test
* add todos
2022-09-22 19:16:21 +02:00
Serge Zaitsev
305d494902
Chore: Switch over to team.Service instead of sqlstore ( #55497 )
...
* switch to using team service
* trying to fix tests
* more tests to fix
* add missing teamtest package
2022-09-20 18:58:04 +02:00
Serge Zaitsev
2ee3fd3994
Chore: Create structure for team service ( #55444 )
2022-09-20 10:14:00 +00:00
Serge Zaitsev
8f1e2ed658
Chore: Split temporary user (invite) service ( #55397 )
...
* Chore: Split temporary users
* change references to tempuser service
* fix api tests
* restore tests
2022-09-20 11:29:17 +02:00
Serge Zaitsev
7108b4331d
Fix: return proper values in dashboard thumbs service ( #55421 )
2022-09-20 00:29:55 +02:00
Serge Zaitsev
96b032e103
Chore: Split dashboard thumbnail service ( #55344 )
...
* Chore: split dashboard thumbnail service
* fix typo
* move tests
* make linter happy
2022-09-19 11:29:22 +02:00
Serge Zaitsev
927ddf9376
Chore: Move login attempt methods to separate service ( #54479 )
...
* Chore: Move login attempt methods to separate service
* attempt to fix tests
* fix syntax
* better time mocking
* initialise now func
2022-09-01 18:08:42 +02:00
Serge Zaitsev
72367f99cf
Chore: Move plugin settings store code into a dedicated service ( #53560 )
2022-08-11 09:50:53 +02:00
Serge Zaitsev
6e4b537ba6
Chore: Remove datasources from the Store interface ( #53515 )
2022-08-10 15:04:51 +02:00
Serge Zaitsev
191ab3bb01
Chore: Move api key models into apikey service package ( #53241 )
...
* Chore: move api key models into apikey service package
* force table name for api key
2022-08-04 14:19:09 +02:00
Serge Zaitsev
8d36f71673
Chore: Remove apikey store methods from sqlstore ( #53197 )
...
* Chore: remove apikey store methods from sqlstore
* remove GetAPIKeys
* remove GetAllAPIKeys
* remove the rest of apikey from sqlstore
2022-08-03 08:13:05 -04:00
Serge Zaitsev
64488f6b90
Chore: split APIKey store ( #52781 )
...
* move apikey store into a separate service
* add apikey service to wire graph
* fix linter
* switch api to use apikey service
* fix provideservice in tests
* add apikey service test double
* try different sql syntax
* rolling back the dialect
* trigger drone
* trigger drone
2022-08-02 16:55:19 +02:00
Serge Zaitsev
ae9491c3a7
Chore: Make test tracer noop and return no errors ( #50797 )
2022-06-15 12:40:41 +02:00
Serge Zaitsev
0b55c41d05
Chore: Remove global bus variable ( #50765 )
...
* Chore: Remove global bus variable
* fix bus in tests
2022-06-14 16:07:41 +02:00
Serge Zaitsev
31ff23f542
Fix: add default nop trace exporter to opentelemetry ( #48869 )
2022-05-10 11:29:36 +02:00
Serge Zaitsev
e9a2a06651
Chore: do not run husky hooks on backend-only changes ( #48439 )
2022-04-29 14:01:02 +01:00
Serge Zaitsev and Ying WANG
41012af997
Tracing: Use common traceID context value for opentracing and opentelemetry ( #46411 )
...
* use common traceID context value for opentracing and opentelemetry
* support sampled trace IDs as well
* inject traceID into NormalResponse on errors
* Finally the test passed
* fix the test
* fix linter
* change the function parameter
Co-authored-by: Ying WANG <ying.wang@grafana.com >
2022-04-14 17:54:49 +02:00
Serge Zaitsev
e86b6662a1
Chore: Remove bus.Bus field ( #47695 )
...
* Chore: Remove bus.Bus field
* fix integration test
2022-04-13 15:24:13 +02:00
Serge Zaitsev
18e93c7077
Chore: Remove bus ( #47511 )
...
* Chore: Remove bus
* remove unused const
2022-04-08 16:15:06 +02:00
Serge Zaitsev
b31c7d3654
Chore: Remove bus from alerting rule ( #47508 )
...
* Chore: Remove bus from alerting rule
* fix alerting tests
* fix provide service
2022-04-08 14:30:25 +02:00
Serge Zaitsev
ad432108e6
Chore: Remove bus from dashboards provisioning ( #47495 )
...
* Chore: Remove bus from dashboards provisioning
* fix symlink test, make it run on darwin
* remove unused mock
2022-04-08 13:56:38 +02:00
Serge Zaitsev
2cf88cfec8
Chore: Remove bus from contexthandler ( #47458 )
...
* Chore: remove bus from contexthandler
* remove bus from orgredirect
2022-04-08 10:33:19 +02:00
Serge Zaitsev
d153d896c5
Chore: Remove bus from contexthandler ( #47374 )
...
* Chore: Remove bus from contexthandler
* fix tests
* try different wire binding
* maybe remove a few more dispatches
* fix tests
2022-04-06 16:31:26 +02:00
Serge Zaitsev
3a7fc80948
Chore: Remove last bus parts from login package ( #47313 )
...
* Chore: Remove last bus parts from login package
* fix middleware tests
2022-04-06 08:45:01 +02:00
Serge Zaitsev
bf9e0e8bc8
Chore: Remove some bus from login package (login attempts) ( #47310 )
2022-04-05 13:07:27 +02:00
Serge Zaitsev and Emil Tullstedt
33006436cc
Chore: Remove bus.Dispatch from some login packages ( #47248 )
...
* Chore: Remove bus.Dispatch from some login packages
* remove debug log
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com >
* remove login.Init()
* remove unused reset function
* remove AuthenticateUserFunc global
* swap conditional branches
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com >
* fix formatting
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com >
2022-04-04 20:36:15 +02:00
Serge Zaitsev
4ce7978cd8
Chore: Remove bus from notification service ( #46813 )
...
* Chore: Remove bus from notification service
* fix signature
* fix function signature in tests
2022-03-22 09:04:30 +01:00
Serge Zaitsev
9315ddd57c
Chore: Remove bus from oauthtoken ( #46811 )
2022-03-21 21:13:57 +01:00
Serge Zaitsev
cce46a6349
Chore: Remove bus from live package ( #46803 )
2022-03-21 20:34:19 +01:00
Serge Zaitsev
df465ccad3
Chore: Remove bus from thumbs service ( #46772 )
2022-03-21 14:15:31 +01:00
Serge Zaitsev
fec634a091
Chore: Remove bus.Dispatch from guardian package ( #46711 )
...
* replace bus in guardian with sqlstore
* fix a couple of tests
* replace bus in the rest of the tests
* allow init guardian from other packages
* make linter happy
* init guardian in library elements
* fix another test in libraryelements
* fix more tests
* move guardian mock one level deeper
* fix more tests
* rename init functions
2022-03-21 10:49:49 +01:00
Serge Zaitsev
893f9e8ee4
use datasource service instead of store in provisioning ( #45835 )
2022-02-25 15:56:44 +00:00
Serge Zaitsev
c1239ee67c
Chore: Remove bus from authinfoservice ( #45787 )
2022-02-23 16:22:16 +01:00
Serge Zaitsev
a231c6861c
Chore: Remove bus.Dispatch from provisioning services ( #44989 )
...
* make getordbyname a method
* remove one dispatch from plugins provisioner
* remove bus from the plugins provisioner, skip test for now
* remove bus from datasource provisioning
* resolve tests in notifier provisioning
* remove bus from the dashboards provisioning service
* fix missing struct field
* fix getorgbyid method calls
* pass org store into dashboard provisioner
* fix test function prototype
* fix tests
* attempt to fix tests after the rebase
* fix integration test
* avoid using transaction
* remove comments
2022-02-23 11:12:37 +01:00
Serge Zaitsev
b9e5bae51f
Chore: Remove bus.Dispatch from cleanup service ( #45401 )
2022-02-15 14:56:19 +01:00
Serge Zaitsev
9d654bb6b8
Chore: Remove bus from plugin proxy api ( #44899 )
...
* remove bus from plugin proxy api
* fixing the tests
2022-02-04 17:35:00 +01:00
Serge Zaitsev
61533a3cb4
Chore: Remove bus from health api ( #44897 )
...
* remove bus from health api
* fix health api tests
* use db health query as a method
* use pointer in sqlstore mock
2022-02-04 14:33:35 +01:00