Santiago
a6b9b27673
Alerting: Remove OrgID() from the Alertmanager interface ( #77398 )
2023-10-31 10:58:47 +01:00
Andres Martinez Gotor
b8105caa05
Chore: Add min Grafana dependency version ( #77272 )
2023-10-31 10:20:04 +01:00
Dan Cech
e01d096ce2
add resource group to grn ( #77396 )
2023-10-30 17:08:46 -04:00
Dan Cech
db6035a843
Chore: update kind annotation names to grafana.app/* ( #77401 )
...
* update kind annotation names to grafana.app/*
2023-10-30 17:08:31 -04:00
Shabeeb Khalid
abebcf4385
CloudWatch: Use context in aws GetLogGroupFieldsWithContext ( #77174 )
2023-10-30 15:14:18 -04:00
Kyle Brandt
e4d1fdc3d0
Errors: Make errors the same in dev as prod ( #77366 )
...
When running in dev mode, error messages would contain an additional "error" property alongside "message". Since this causes confusion, that has been removed and now error messages are the same both modes (using "message").
2023-10-30 14:06:26 -04:00
Santiago
363830883c
Alerting: Add feature toggles for Alertmanager migration ( #77372 )
...
* Alerting: Add feature toggles for Alertmanager migration
* address code review comments
2023-10-30 17:27:08 +01:00
ismail simsek
6b13064cf6
InfluxDB: Fix parsing multiple tags on backend mode ( #77340 )
...
* Multiple tags separated by comma in the result
* A non-flaky unit test
2023-10-30 15:45:20 +01:00
Ezequiel Victorero
16034ef062
PublicDashboards: Add swagger documentation ( #75318 )
2023-10-30 10:32:07 -03:00
ismail simsek
4ed36cbc1d
InfluxDB: Fix parsing empty response ( #77353 )
...
Fix parsing empty response
2023-10-30 11:39:15 +01:00
Karl Persson
87eba34745
User: remove empty email / username check from update in service ( #77347 )
...
User: remove empty email / username check from update in service
2023-10-30 10:44:26 +01:00
Yuri Tseretyan
bc7357727c
Alerting: Enable feature flag alertingNoDataErrorExecution by default ( #77242 )
2023-10-27 17:17:34 -04:00
Todd Treece
798e224ce6
K8s: JSON file storage ( #75759 )
2023-10-27 16:39:27 -04:00
Yuri Tseretyan
48b55f39bf
Alerting: Add support for responders to Opsgenie integration ( #77159 )
...
* add support for responders in opsgenie UI config
* update export model
Co-authored-by: Santiago <santiagohernandez.1997@gmail.com >
2023-10-27 13:06:46 -04:00
Michael Mandrus
0231873d70
Feature Management: Link to grafana.com docs from feature toggle admin page ( #77302 )
...
* add link to gcom
* re-add subtitle on backend so it displays in the high level administration view
2023-10-27 19:16:43 +03:00
ismail simsek
046791e2be
InfluxDB: Response parser improvements ( #76852 )
...
* remove retention policy lookup
* Back to one big function
* %10 less memory allocation
pkg: github.com/grafana/grafana/pkg/tsdb/influxdb/influxql
│ 1.txt │ 2.txt │
│ sec/op │ sec/op vs base │
ParseBigJson-10 540.9m ± 3% 474.0m ± 2% -12.37% (p=0.000 n=10)
│ 1.txt │ 2.txt │
│ B/op │ B/op vs base │
ParseBigJson-10 580.6Mi ± 0% 573.2Mi ± 0% -1.28% (p=0.000 n=10)
│ 1.txt │ 2.txt │
│ allocs/op │ allocs/op vs base │
ParseBigJson-10 10.123M ± 0% 9.086M ± 0% -10.25% (p=0.000 n=10)
* Slightly better results comparing with the previous commit
pkg: github.com/grafana/grafana/pkg/tsdb/influxdb/influxql
│ 2.txt │ 3.txt │
│ sec/op │ sec/op vs base │
ParseBigJson-10 474.0m ± 1% 503.4m ± 3% +6.21% (p=0.000 n=10)
│ 2.txt │ 3.txt │
│ B/op │ B/op vs base │
ParseBigJson-10 573.2Mi ± 0% 564.0Mi ± 0% -1.60% (p=0.000 n=10)
│ 2.txt │ 3.txt │
│ allocs/op │ allocs/op vs base │
ParseBigJson-10 9.086M ± 0% 9.052M ± 0% -0.37% (p=0.000 n=10)
* Split into smaller functions
* Unit test for parseTimestamp
2023-10-27 17:17:19 +02:00
Ryan McKinley
9b472b3726
K8s: Use client-go to test legacy playlist changes ( #77245 )
2023-10-27 06:59:49 -07:00
Gabriel MABILLE
83e9088314
AuthN: Set oauth client grant_types based on plugin state ( #77248 )
...
* Disable plugin service account
* Fix bug seen by linoman 💯
Co-authored-by: linoman <2051016+linoman@users.noreply.github.com >
* Account for PR feedback
Co-authored-by: linoman <2051016+linoman@users.noreply.github.com >
* Fix test data
* Enable datasource plugins by default
Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com >
* Update pkg/services/extsvcauth/oauthserver/oasimpl/service.go
* Handle error differently
* Fix service reg
---------
Co-authored-by: linoman <2051016+linoman@users.noreply.github.com >
Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com >
2023-10-27 14:45:04 +02:00
Gabriel MABILLE
25b30aeb6d
Plugin: Enable service account based on plugin settings on init ( #77193 )
...
* Disable plugin service account
* Revert extsvc injection
* handle plugin state changes
* Use isProxyEnabled
* Remove plugininteg changes
* Change update function to also work for mysql 😩
* Plugin: enable service account based on plugin settings on
initialization
* Remove misleading comment
* Fix tests
* test message
* Clean up tests
* Simplify tests
* Re-order imports
* Remove unecessary comment
* Enable datasource plugins by default
Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com >
---------
Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com >
2023-10-27 14:27:06 +02:00
Gabriel MABILLE
2727f41474
AuthN: Change the external service account state on plugin state change ( #77157 )
...
* Disable plugin service account
* Revert extsvc injection
* handle plugin state changes
* Use isProxyEnabled
* Remove plugininteg changes
* Change update function to also work for mysql 😩
* Change test to also check no collateral update
* Update pkg/services/serviceaccounts/database/store_test.go
* Update pkg/services/serviceaccounts/database/store_test.go
2023-10-27 13:46:25 +02:00
Eric Leijonmarck
57335cb173
Team LBAC: Add validation/regex of teamheaders ( #76905 )
...
* add validation of team header values w. regex
* apply valid headers
* refactor testcases to account for badly formatted json
* refactoring to move validation code close to the validation itself
* removed tes
* Update pkg/api/datasources_test.go
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com >
* Update pkg/api/datasources.go
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com >
* review comments
* review during pairing
---------
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com >
2023-10-27 12:37:37 +01:00
Matias Chomicki
46f331e284
Logs: remove toggleLabelsInLogsUI ( #77264 )
...
* toggleLabelsInLogsUI: remove flag
* Remove unused imports
* isFilterLabelActive: refId is not optional
* Revert "isFilterLabelActive: refId is not optional"
This reverts commit 008931b7e9 .
* Revert method signature change
* Update tests
* Update tests
2023-10-27 13:00:49 +02:00
Shabeeb Khalid
df41378472
CloudWatch: Use context in aws ListSinks and ListAttachedLinks ( #77083 )
...
* Use context in aws ListSinks and ListAttachedLinks
In the current way, ListSinks and ListAttachedLinks is used which doesn't
allow cancelling the request if the context changes.
Using ListSinksWithContext and ListAttachedLinksWithContext is the
preferred way. Adding context for GetAccountsForCurrentUserOrRole
is required to pass it to ListSinks method.
2023-10-27 11:49:37 +03:00
Karl Persson
bc9fab6f30
IDForwarding: Update settings name ( #77257 )
...
Update settings name
2023-10-27 10:20:49 +02:00
Giuseppe Guerra
45bcbff115
Plugins: Fix plugin alias ID being used in PluginContext.ID ( #77206 )
...
* Fix PluginID being populated with alias in plugincontext Get and GetWithDataSource
* Add tests
* pr review suggestion
* pr review suggestion
2023-10-27 11:14:07 +03:00
Horst Gutmann
aa9fc3be72
CI: Fix release-npm-packages action ( #77127 )
...
* Remove dependency of NpmReleaseAction to the git binary
* Switch to using the node image for the release-npm-packages step
2023-10-27 10:20:20 +03:00
Karl Persson
1b6d39f823
IDForwarding: Require that id forwarding is enabled for data source ( #77131 )
...
* Require that id forwarding is enabled for data source
* Address feedback
2023-10-27 08:30:33 +02:00
Ezequiel Victorero
b2ef9a81f2
PublicDashboards: Chore refactor api test ( #77091 )
2023-10-26 14:52:27 -03:00
Ryan McKinley
7d619199d0
K8s/Authorizer: Move allow from fallback to org_role ( #77235 )
2023-10-26 20:46:45 +03:00
Ryan McKinley
c122ffc72b
K8s: Add integration test infra, and fix authz patterns ( #77218 )
2023-10-26 20:02:33 +03:00
Ieva
744f4defcf
Bug: fix a typo in dashboard permission logic ( #77231 )
...
fix an error handling typo
2023-10-26 19:39:27 +03:00
Ieva
f6e2a775d3
Bug fix: Correctly set permissions on provisioned dashboards ( #77155 )
...
* set default basic role permissions for dashboards even if dash creator permissions can't be set
* temporarily increase the test threshold until we can tweak the page
2023-10-26 17:21:50 +01:00
Ryan McKinley
ba1575322b
K8s: Share legacy storage configs with etcd based configs ( #77181 )
2023-10-26 09:05:51 -07:00
Kristin Laemmert
15c1d5f636
chore: add basic tracing to playlist service ( #77165 )
2023-10-26 09:25:31 -04:00
João Calisto
7869ca1932
Feature Management: UI improvements ( #76866 )
...
* Feature Management: UI improvements
* update UI logic
---------
Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com >
2023-10-26 10:42:00 +01:00
Todd Treece
bf8af608a7
K8s: Add tracer provider to config ( #77003 )
2023-10-25 15:19:44 -04:00
Ryan McKinley
7e069f9d91
K8s: Move the namespace mapper to the same package that resolves them ( #77101 )
2023-10-25 14:13:46 -04:00
Ieva
39a30b0c01
Bug fix: add library panel permissions to basic roles ( #77144 )
...
set library panel permissions to basic roles
2023-10-25 18:44:55 +01:00
Misi
1e81ffccac
Auth: Handle when access token has already been refreshed in OAuth token sync ( #77118 )
...
* Use singleflight to prevent logging error if the token has already been refreshed
* Change order of error checks
* align tests, change error name
* Change sf key
* Update based on the review
* refactor
2023-10-25 18:15:41 +02:00
Ryan McKinley
d2732ae726
K8s: Add explicit table converter ( #77098 )
2023-10-25 09:00:20 -07:00
Santiago
f9fc2e4568
Alerting: Remove ConfigHash() from the Alertmanager interface ( #77134 )
2023-10-25 17:11:53 +02:00
Alexander Weaver
6ee52ac80c
Alerting: Allow more time before Alertmanager expire-resolves alerts ( #77094 )
...
* Sync endsAt factor with prometheus
* Fix state tests
2023-10-25 10:03:46 -05:00
linoman
dff7403b29
auth: implement feature flag for service account proxy ( #77129 )
...
* add FlagExternalServiceAccounts to proxy service
* add FlagExternalServiceAccounts value to tests
---------
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
2023-10-25 16:44:05 +02:00
Ryan McKinley
5d44240fca
K8s: Use grafana.app as the playlist+example group name domains ( #77096 )
2023-10-25 07:24:19 -07:00
Gilles De Mey
e12e40fc24
Alerting: Contact Points v2 part IV ( #76063 )
2023-10-25 15:57:53 +02:00
kay delaney
b215d2f0fb
Library Panels: Fix library panel creation with RBAC enabled ( #76553 )
2023-10-25 16:29:57 +03:00
Gabriel MABILLE
20fc0cbf35
Chore: Allow env overrides for the extended_jwt config ( #77132 )
...
Chore: Allow env overrides for the extended_jwt config
2023-10-25 14:28:12 +02:00
Marcus Efraimsson
9bf7eb5fbc
Plugins: Adds logging around loading of plugins for better tracking ( #76896 )
2023-10-25 14:01:30 +02:00
Santiago
322a9c0b15
Alerting: Replace FileStore() for CleanUp() in the Alertmanager interface ( #77126 )
...
Alerting: Remplace FileStore() for CleanUp() in the Alertmanager interface
2023-10-25 13:58:28 +02:00
linoman
1bc81b7bd1
auth: migrate api interface implementation ( #77040 )
...
* expand serviceaccount service interface
* implemet FakeServiceAccountService
* Replace SA service interface from api
* merge sa proxy tests with new fake service
* implement DeleteServiceAccountToken
* add test for DeleteServiceAccountToken
2023-10-25 12:40:30 +02:00