Jo
caae4fd034
SupportBundles: Add config enablement ( #61776 )
...
* wip
* implement role middleware drop
* remove not implement feature
* change grants based on config
* Update pkg/services/supportbundles/supportbundlesimpl/models.go
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2023-01-20 08:59:15 +00:00
gotjosh
511dab3b4b
Update grafana/alerting
to the latest main ( #61810 )
...
* Update `grafana/alerting` to the latest main
Also updates prometheus-alertmanager since we use that one directly for some structs.
2023-01-19 20:44:49 +00:00
Jo
e2ec219f6a
SecretScan: Remove placeholder image and polish errors ( #61785 )
...
* remove placeholder image
* improve http client options
* add http clients options for webhook notifier
* ensure http is only used in dev mode
* cleanup errors
2023-01-19 18:33:27 +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
Sofia Papagiannaki
c104cc7020
Chore: Split folder store and dashboard store interfaces ( #61655 )
...
* update folder store mock
* Split folder store and dashboard store interfaces
2023-01-19 18:38:07 +02:00
Stephanie Hingtgen
3b718a3e8f
Plugins: enable the plugin sdk to get the json data for all datasources ( #61729 )
2023-01-19 08:49:45 -07:00
Andrej Ocenas
d8273eeb6b
Parca: Use client dependency from buf.dev instead of generated sources ( #60969 )
2023-01-19 16:26:00 +01:00
linoman
56c2755b3b
Fix JWT claims request ( #61650 )
...
* Fix JWT claims request
* Add test scenarios for missing config options
2023-01-19 16:03:09 +01:00
Alexander Zobnin
60ef88c918
SAML: Support auto login ( #61685 )
...
* SAML: Support auto login
* Add individual auto_login option for each OAuth provider
* Docs: Describe new auto_login option
* Minor refactor
2023-01-19 15:53:02 +01:00
Ieva
06350ed887
RBAC: remove the usage of access control mock from preference tests ( #61709 )
...
remove the usage of access control mock from preference tests
2023-01-19 14:43:00 +00:00
Karl Persson
c5c34ed95e
RBAC: Rewrite provisioning rbac tests ( #61752 )
...
* RBAC: Rewrite rbac provisioning api tests
2023-01-19 13:49:57 +01:00
Karl Persson
f38e2856d8
RBAC: Rewrite admin api test setup to not use mocked access control ( #61741 )
...
* RBAC: Rewrite admin api test setup to not use mocked access control
2023-01-19 11:36:44 +01:00
Karl Persson
f5397a7c31
RBAC: Rewrite ldap rbac tests ( #61743 )
2023-01-19 11:09:26 +01:00
Alexander Weaver
c10713ea76
Alerting: Create query interface for state history along with annotation-based implementation ( #61646 )
2023-01-19 10:45:31 +01:00
idafurjes
cacc55ba06
Chore: Remove live from models ( #61711 )
2023-01-19 10:03:14 +01:00
Eric Leijonmarck
0d42edddbf
Auth: Add skip_org_role_sync setting to OAuth integration Google ( #61572 )
...
* WIP
* Add: skip_org_role_sync for Google OAuth
- add setting for frontend
- add read of config
- add config to sample and default
* add: docs
* spelling
* Update pkg/login/social/social.go
* Apply suggestions from code review
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
* removed unnessecary line
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2023-01-19 09:54:22 +01:00
ismail simsek
29c8ce12a0
Prometheus: Fix handling errors in streaming client ( #61643 )
...
* Return errors from data parsing
* Better error handling
* Fix the tests
* When there is no frame add empty frame to get metadata attached to it
* Fix tests
* Update testdata
2023-01-18 22:30:15 +01:00
Yuri Tseretyan
2c46f46d37
Alerting: Rule evaluator to get cached data source info ( #61305 )
...
do not skip cache when get data source info
2023-01-18 14:25:11 -05:00
Jean-Philippe Quéméner
44b11d3228
Alerting: support basic auth for the state history loki client ( #61696 )
2023-01-18 20:24:40 +01:00
Yuri Tseretyan
5e8866ed5a
SSE: DSNode to parse only one response ( #61644 )
...
* do not iterate through responses
* log type of the response in all exit cases
2023-01-18 13:06:10 -05:00
sam boyer
492bdbd585
Kindsys: Rename mudball to common schemas, allow multiple input cue files ( #61703 )
...
* kindsys: Rename mudball to common schemas
* Update all core plugin imports
* Add missed table types
* Remove invalid JSON comment
* Remove coremodel dir from codeowners
2023-01-18 17:40:22 +00:00
Yuri Tseretyan
ef6d73e575
SSE: Resample command to support NoData ( #61708 )
...
* add test for nil value
2023-01-18 12:39:38 -05:00
George Robinson
d4256b352d
Docs: Rename Message templates to Notification templates ( #59477 )
...
This commit renames "Message templates" to "Notification templates"
in the user interface as it suggests that these templates cannot
be used to template anything other than the message. However, message
templates are much more general and can be used to template other fields
too such as the subject of an email, or the title of a Slack message.
2023-01-18 17:26:34 +00:00
Will Browne
c54aa18cd8
Plugins: Add tailored interface for plugins licensing needs ( #61045 )
...
* tailored licensing service
* appease linter
* fix
* retrigger
2023-01-18 18:02:54 +01:00
sam boyer
61d8ab71a3
Dashboards: Promote dashboard kind to experimental maturity ( #61693 )
2023-01-18 11:36:35 -05:00
Ezequiel Victorero
5fb4a7f3b6
PublicDashboards: add timeSettingsEnabled on saving a public dashboard ( #61701 )
2023-01-18 16:03:41 +00:00
Sofia Papagiannaki
4b634fadcf
Chore: Fix Swagger and OpenAPI specifications ( #61669 )
...
* Add go-swagger annotations for route
* Re-generate Swagger and OpenAPI specs
2023-01-18 17:49:07 +02:00
Sofia Papagiannaki
b80c9bb974
Chore: Drop dashboard service dependency from folder service ( #61614 )
...
* Chore: Drop dashboard dependency from folder service
2023-01-18 17:47:59 +02:00
Christian Simon
a1f2d0e205
Prometheus: Reduce allocations parsing exemplars ( #58959 )
...
* Prometheus: Reduce allocations parsing exemplars
This reduces allocations for parsing exemplars.
name old time/op new time/op delta
ExemplarJson-8 24.7ms ±15% 17.6ms ± 2% -28.72% (p=0.008 n=5+5)
name old alloc/op new alloc/op delta
ExemplarJson-8 4.70MB ± 0% 3.58MB ± 0% -23.79% (p=0.008 n=5+5)
name old allocs/op new allocs/op delta
ExemplarJson-8 72.6k ± 0% 69.1k ± 0% -4.81% (p=0.008 n=5+5)
* Ensure pairs is reset
2023-01-18 16:42:22 +01:00
Alexander Zobnin
1fdd3767f1
RBAC: Add permission to get usage report preview ( #61570 )
...
* AccessControl: Protect usage report preview endpoint
* Fix role display name
* Change action name
* Fix imports
2023-01-18 16:07:36 +01:00
Eric Leijonmarck
bedd2304d1
Auth: Fix disable/remove duplicate user entries metrics for performance reasons ( #61675 )
...
* fix: remove metrics from duplicate user entries
* fix: disable metrics collection for authinfo
* fix: initifine goroutine loop that happened
* removed: metrics
2023-01-18 16:01:47 +01: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
Levente Balogh
4ef82dc73f
Connections: Show a "No access" modal if the user has no permissions ( #61397 )
...
* feat: add a new modal for displaying no-access info
* feat(CardGrid): add an onClick handler for items
* feat: open a no-access modal when clicking on a connection in the catlog
* feat: update permissions
Open a "No access" modal when the user clicks a connection type but has no permissions creating a datasource out of it
* test: add tests for opening the No Access modal
* test: fix the user permissions in tests
* Wip
* Revert "Wip"
This reverts commit 7f080c7f77
.
2023-01-18 15:34:23 +01:00
juanicabanas
18e8d1e28d
PublicDashboards: Time range settings ( #61585 )
2023-01-18 10:54:19 -03:00
Karl Persson
1454b1b40a
Reqcontext: Add methods to write responses bases on errutil.Error ( #60889 )
...
* ReqContext: Add methods to reqcontext used to handle errutil.Error
* ReqContext: Pass all public field in response from errutil.Error
2023-01-18 14:29:23 +01:00
linoman
4d095547f8
Auth: Implement skip org role sync for jwt ( #61647 )
...
* Add new config option
* Add frontend control
* Condition new auth broker with config option
* Condition old auth broker with config option
Co-authored-by: Jo <joao.guerreiro@grafana.com>
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2023-01-18 13:59:50 +01:00
idafurjes
b573b19ca3
Chore: Remove dashboards from models pkg ( #61578 )
...
* Copy dashboard models to dashboard pkg
* Use some models from current pkg instead of models
* Adjust api pkg
* Adjust pkg services
* Fix lint
* Chore: Remove dashboards models
* Remove dashboards from models pkg
* Fix lint in tests
* Fix lint in tests 2
* Fix for import in auth
* Remove newline
* Revert unused fix
2023-01-18 13:52:41 +01:00
Karl Persson
db0be6bc95
RBAC: fix wildcard check ( #61666 )
...
RBAC: break correct loop
2023-01-18 13:19:09 +01:00
Jo
ecafb4dd15
Auth forwarding: Pass tokens without refresh ( #61634 )
...
* return only tokens from oauth
* feedback
2023-01-18 10:50:35 +00:00
Sofia Papagiannaki
f25d5199c5
Chore: Fix folder service tests ( #61659 )
...
* Chore: Fix folder service tests
2023-01-18 12:22:23 +02:00
Karl Persson
412d80b498
AuthN: Add post auth hook for oauth token refresh ( #61608 )
...
* AuthN: rename package to sync
* AuthN: rename sync files
* Ouath: Add mock for OauthTokenService
* AuthN: Implement access token refresh hook
* AuthN: remove feature check from hook
* AuthN: register post auth hook for oauth token refresh
2023-01-18 10:47:09 +01:00
Santiago
b5fa9e3501
Chore: Fix "manger" typo ( #61649 )
...
fix mangers -> managers
2023-01-17 23:13:27 +00:00
Karl Persson
05a683d462
SupportBundles: Fix list response when we don't have any bundles yet ( #61619 )
...
* SupportBundles: Return empty slice instead of nil when there are no
support bundles
2023-01-17 21:04:12 +01:00
Alexander Weaver
1ac89ea040
Alerting: Add client configuration for remote Loki historian backend and test connection ( #61114 )
...
* Create loki client type and ping method
* Expose TestConnection on client
* Configure and ping Loki URL
* Close response body reader if present
* Add 30 second timeout
* Remove duplicate close
2023-01-17 13:58:52 -06:00
Kristin Laemmert
f6e3252c00
chore: move notifications models into notifications service ( #61638 )
2023-01-17 14:47:31 -05:00
Matthew Jacobson
23e05373a7
Alerting: Fix flaky TestIntegrationUpdateAlertRules ( #61641 )
...
Prevents random OrgID=0 in test alert generation causing invalid alert rule.
2023-01-17 19:09:46 +00:00
owensmallwood
3fe81b3c3f
PublicDashboards: Add share column to public dashboards table ( #61102 )
...
Adds share column to public dashboards table
2023-01-17 12:18:12 -06:00
Alexander Weaver
4f1bdc0607
Alerting: Skip flaky test in TestIntegrationUpdateAlertRules ( #61627 )
...
* Skip flaky test
* Add comment
2023-01-17 10:39:16 -06:00
ismail simsek
67c02f660a
Influxdb: Remove backend migration feature toggle ( #61308 )
...
* Remove influxdbBackendMigration feature toggle
* Remove code blocks related to influxdbBackendMigration feature toggle
* Fix annotations
* Remove commented lines
* Fix unit tests
2023-01-17 15:11:26 +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