Karl Persson
76f052e8de
Requester: Remove duplicated function ( #97038 )
...
* Remove duplicated function
* Remove GetDisplayName from interface
* Use GetName
2024-11-26 15:29:31 +01:00
Todd Treece
df9925f3bb
Live: Clean up redis after test run ( #93806 )
2024-09-26 08:41:47 -04:00
Todd Treece
277d82db9a
Live: Add ha_prefix ( #93759 )
2024-09-25 22:20:35 +02:00
Andre Pereira
72ed3107fa
Tempo: Remove usage of traceQLStreaming feature toggle ( #93033 )
...
* Remove usage of traceqlStreaming feature toggle and stop checking for Tempo version
* Increase Grafana Live's ClientQueueMaxSize to 4mb to support larger responses from Tempo
2024-09-06 16:12:21 +01:00
Karl Persson
8bcd9c2594
Identity: Remove typed id ( #91801 )
...
* Refactor identity struct to store type in separate field
* Update ResolveIdentity to take string representation of typedID
* Add IsIdentityType to requester interface
* Use IsIdentityType from interface
* Remove usage of TypedID
* Remote typedID struct
* fix GetInternalID
2024-08-13 10:18:28 +02:00
Karl Persson
bcfb66b416
Identity: remove GetTypedID ( #91745 )
2024-08-09 18:20:24 +03:00
Ryan McKinley
728150bdbd
Identity: extend k8s user.Info ( #90937 )
2024-07-30 08:27:23 +03:00
Ryan McKinley
9db3bc926e
Identity: Rename "namespace" to "type" in the requester interface ( #90567 )
2024-07-25 12:52:14 +03:00
Alexander Zobnin
87d86e81ce
Zanzana: Evaluate permissions alongside with RBAC engine ( #90064 )
...
* Zanzana: Evaluate permissions if feature flag enabled
* Fix tests
* adjust logs
* fix spelling
* remove unused
* only evaluate implemented resources
* refactor
2024-07-05 11:31:23 +02:00
Dave Henderson
6262c56132
chore(perf): Pre-allocate where possible (enable prealloc linter) ( #88952 )
...
* chore(perf): Pre-allocate where possible (enable prealloc linter)
Signed-off-by: Dave Henderson <dave.henderson@grafana.com >
* fix TestAlertManagers_buildRedactedAMs
Signed-off-by: Dave Henderson <dave.henderson@grafana.com >
* prealloc a slice that appeared after rebase
Signed-off-by: Dave Henderson <dave.henderson@grafana.com >
---------
Signed-off-by: Dave Henderson <dave.henderson@grafana.com >
2024-06-14 14:16:36 -04:00
Ryan McKinley
99d8025829
Chore: Move identity and errutil to apimachinery module ( #89116 )
2024-06-13 07:11:35 +03:00
Karl Persson
9977258d04
AuthN: Set uid during authentication ( #87797 )
...
* Identity: Remove GetNamespacedUID and use GetUID instead
* Authn: Set uid for users and service accounts
2024-05-14 14:13:50 +02:00
Ieva
167151b211
Chore: Remove use of deprecated method in AC code ( #87541 )
...
* switch from using cfg to using featuremgmt for checking a feature toggle in AC code
* merge test fixes
2024-05-10 11:56:52 +01:00
Dan Cech
41bee274fd
Chore: Fix error handling in postDashboard, remove UserDisplayDTO, fix live redis client initialization ( #87206 )
...
* clean up error handling in postDashboard and remove UserDisplayDTO
* replace GetUserUID with GetUID and GetNamespacedUID, enforce namespace constant type
* lint fix
* lint fix
* more lint fixes
2024-05-06 14:17:34 -04:00
김은빈
96dfb385ca
Grafana: Replace magic number with a constant variable in response status ( #80132 )
...
* Chore: Replace response status with const var
* Apply suggestions from code review
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com >
* Add net/http import
---------
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com >
2024-02-27 18:39:51 +02:00
Dan Cech
790e1feb93
Chore: Update test database initialization ( #81673 )
...
* streamline initialization of test databases, support on-disk sqlite test db
* clean up test databases
* introduce testsuite helper
* use testsuite everywhere we use a test db
* update documentation
* improve error handling
* disable entity integration test until we can figure out locking error
2024-02-09 09:35:39 -05:00
João Calisto
cbb85b77a5
Live: Default to local engine if redis is unavailable ( #77467 )
...
* Live: Default to local engine if redis is unavailable
* fix error formatting
2023-11-08 12:22:26 +00:00
Carl Bergquist
bc7c7bec16
instrumentation: remove live endpoints from slo ( #77706 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2023-11-06 06:51:59 -08:00
João Calisto
d5691e6dd1
Live: Allow setting the engine password ( #76289 )
2023-10-11 09:45:24 +01:00
Marcus Efraimsson
e4c1a7a141
Tracing: Standardize on otel tracing ( #75528 )
2023-10-03 14:54:20 +02:00
Andres Martinez Gotor
ece94b1e01
Chore: Remove plugincontext.ErrPluginNotFound ( #74997 )
2023-09-25 13:10:47 +03:00
Todd Treece
71fe6f8390
Live: Add logging to memory cache ( #75245 )
2023-09-21 12:59:01 -04:00
Todd Treece
4f06d362df
Chore: Add additional debug info to live websocket pushes ( #75131 )
2023-09-19 19:33:23 -04:00
Will Browne
e855efb13d
Plugins: Move store and plugin dto to pluginsintegration ( #74655 )
...
move store and plugin dto
2023-09-11 13:59:24 +02:00
linoman
0e8f19ca6a
Auth: Reduce restriction with non-user accounts ( #74397 )
...
* Reduce restrictions with non-user accounts
* Revert restrictions on anonymous accounts
* Change log level from warning to debug
* Change log messages to upper case
2023-09-06 13:37:54 +02:00
Serge Zaitsev
bd12ce0cbc
Chore: capitalise log messages for app platform ( #74336 )
2023-09-04 18:46:08 +02:00
Ryan McKinley
025b2f3011
Chore: use any rather than interface{} ( #74066 )
2023-08-30 18:46:47 +03:00
linoman
1b8e9b51b2
Replace signed in user for identity.requester ( #74048 )
...
* Make identity.Requester available at Context
* Clean pkg/services/guardian/guardian.go
* Clean guardian provider and guardian AC
* Clean pkg/api/team.go
* Clean ctxhandler, datasources, plugin and live
* Clean dashboards and guardian
* Implement NewUserDisplayDTOFromRequester
* Change status code numbers for http constants
* Upgrade signature of ngalert services
* log parsing errors instead of throwing error
2023-08-30 16:51:18 +02:00
Jo
a307582212
Revert "Replace signed in user for identity.requester ( #73750 )" ( #73962 )
...
This reverts commit 9b9c9e83dc .
2023-08-28 21:05:59 +02:00
linoman
9b9c9e83dc
Replace signed in user for identity.requester ( #73750 )
...
* Make identity.Requester available at Context
* Clean pkg/services/guardian/guardian.go
* Clean guardian provider and guardian AC
* Clean pkg/api/team.go
* Clean ctxhandler, datasources, plugin and live
* Question: what to do with the UserDisplayDTO?
* Clean dashboards and guardian
* Remove identity.Requester from ReqContext
* Implement NewUserDisplayDTOFromRequester
* Fix tests
* Change status code numbers for http constants
* Upgrade signature of ngalert services
* log parsing errors instead of throwing error
* Fix tests and add logs
* linting
2023-08-28 12:04:36 -05:00
Andres Martinez Gotor
8f76647386
Chore: Update golangci-lint to v1.53.3 ( #71771 )
2023-07-18 10:03:35 +02:00
Will Browne
91b0cdc871
Plugins: Account for nil user when constructing plugin context ( #69811 )
...
cater for nil user
2023-06-08 19:36:41 +03:00
Will Browne
624777258b
Plugins: Refactor creation of plugin context to dedicated service ( #66451 )
...
* first pass
* fix tests
* return errs
* change signature
* tidy
* delete unnecessary fields from test
* tidy
* fix tests
* simplify
* separate error check in API
* apply nits
2023-06-08 13:59:51 +02:00
Alexander Emelin
842ce14429
Live: Update Centrifuge to the latest version ( #66637 )
2023-04-18 21:47:15 -07:00
Sofia Papagiannaki
caac9838d8
Build: Fix Redis/Memcached integration tests ( #64298 )
...
* Build: Fix integration cache tests
* Allow REDIS_URL with scheme
* Reduce cache integration tests timeout to 5m
* Apply suggestion from code review
* Run redis/memcached integration tests in OSS pipelines
* Change redis image
2023-04-05 11:55:55 +03:00
Emil Tullstedt
be9361cb9e
Logger: Add feature toggle for errors in HTTP request logs ( #64425 )
2023-03-31 15:38:09 +02:00
Ryan McKinley
f96637b5fc
Live: Remove (alpha) ability to configure live pipelines ( #65138 )
2023-03-22 20:09:44 +02:00
Ezequiel Victorero
8f0a9729f0
PublicDashboards: Allow hidden queries execution ( #64858 )
2023-03-16 15:39:17 -03:00
Ryan McKinley
d5a9a0cea0
Chore: remove comments feature ( #64644 )
2023-03-11 04:28:12 -08:00
Will Browne
94f39e69a3
Plugins: Migrate plugincontext, adapters and pluginsettings to pkg/services/pluginsintegration package ( #64154 )
...
* migrate plugincontext, adapter and pluginsettings
* add to CODEOWNERS
* fix imports
* fix CODEOWNERS
* take pluginsettings
* migrate wire stuff
2023-03-07 11:22:30 -05:00
Will Browne
32aa0ad272
Plugins: Remove stream handler from plugins DTO ( #63812 )
...
remove stream handler from DTO
2023-02-27 19:48:18 +01:00
Ryan McKinley
72790b0614
Live: Remove dev code that would save config and messages in SQL ( #62912 )
2023-02-03 16:21:48 -05:00
idafurjes
23c27cffb3
Chore: Rename Id to ID in alerting models ( #62777 )
...
* Chore: Rename Id to ID in alerting models
* Add xorm tags for datasource
* Add xorm tag for uid
2023-02-02 17:22:43 +01:00
Serge Zaitsev
907e2a840e
Chore: Fix goimports grouping ( #62429 )
...
* fix goimports ordering
* fix goimports order
2023-01-30 09:57:50 +01:00
idafurjes
6c5a573772
Chore: Move ReqContext to contexthandler service ( #62102 )
...
* Chore: Move ReqContext to contexthandler service
* Rename package to contextmodel
* Generate ngalert files
* Remove unused imports
2023-01-27 08:50:36 +01:00
idafurjes
b54b80f473
Chore: Remove Result from dashboard models ( #61997 )
...
* Chore: Remove Result from dashboard models
* Fix lint tests
* Fix dashboard service tests
* Fix API tests
* Remove commented out code
* Chore: Merge main - cleanup
2023-01-25 10:36:26 +01:00
idafurjes
8cbcdf1c26
Remove live.go from models ( #61742 )
...
* Remove live.go from models
* Change Id to ID
* Add xorm tags
2023-01-19 18:10:40 +01:00
idafurjes
cacc55ba06
Chore: Remove live from models ( #61711 )
2023-01-19 10:03:14 +01:00
idafurjes
7c2522c477
Chore: Move dashboard models to dashboard pkg ( #61458 )
...
* Copy dashboard models to dashboard pkg
* Use some models from current pkg instead of models
* Adjust api pkg
* Adjust pkg services
* Fix lint
2023-01-16 16:33:55 +01:00
Denis Limarev
90badc8729
Performance: Add preallocation for some slices ( #59593 )
2023-01-11 18:03:37 +01:00