Karl Persson
d2b19c167b
AuthN: Change error returned when sign up is disabled for provider ( #65110 )
2023-03-21 15:36:53 +02: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
Ashley Harrison
9ca01cc070
Notifications: Enable display of trace ID by default ( #64884 )
...
enable tracing by default
2023-03-21 09:35:21 +00: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
Ryan McKinley
91a4b8b529
Chore: remove dashboardsFromStorage ( #65058 )
2023-03-20 18:36:49 +02:00
Artur Wierzbicki
4274b9414f
Chore: remove querylibrary
feature toggle ( #65021 )
...
* chore: remove querylibrary
* chore: remove querylibrary
* chore: remove querylibrary
2023-03-20 20:00:14 +04:00
Sven Grossmann
68551ac9ca
Loki: Add lokiQueryChunkingOption
feature flag ( #65057 )
...
* add `lokiQueryChunkingOption` feature flag
* be safe and also rely on `config.featureToggles.lokiQuerySplitting`
* renamed to `lokiQuerySplittingConfig`
* fix typo
2023-03-20 16:51:36 +01:00
Will Browne
ee2dd62a1f
Plugins: Refactor loader + finder to support multiple sourcing methods ( #64735 )
...
* it's cdn time
* tidy body closing
* auto signed
* fix close
* update log name
* remove comments
2023-03-20 14:35:49 +01:00
Ieva
7860ca6c3d
RBAC: protect folder creation and moving ( #64636 )
...
* protect moving folders to a subfolder and creating folders in a subfolder
* folder update endpoint isn't used for folder parent update
* lint
* move permission check logic to services, fix tests
* linting
2023-03-20 11:04:22 +00:00
Sofia Papagiannaki
4ee0be6fdf
Chore: Add function for detecting if the SQL driver supported CTEs ( #64441 )
...
* Add interface method for detecting if the SQL driver supported CTEs
* Update nested folder store to call RecursiveQueriesAreSupported()
2023-03-20 10:27:08 +02:00
Alexander Weaver
40c5713cbd
Vendor errors.Join from Go standard library to avoid version incompatibilities ( #64985 )
...
Vendor errors.Join from std lib
2023-03-17 14:07:58 -05:00
Alexander Weaver
a31672fa40
Alerting: Create new state history "fanout" backend that dispatches to multiple other backends at once ( #64774 )
...
* Rename RecordStatesAsync to Record
* Rename QueryStates to Query
* Implement fanout writes
* Implement primary queries
* Simplify error joining
* Add test for query path
* Add tests for writes and error propagation
* Allow fanout backend to be configured
* Touch up log messages and config validation
* Consistent documentation for all backend structs
* Parse and normalize backend names more consistently against an enum
* Touch-ups to documentation
* Improve clarity around multi-record blocking
* Keep primary and secondaries more distinct
* Rename fanout backend to multiple backend
* Simplify config keys for multi backend mode
2023-03-17 12:41:18 -05:00
Ezequiel Victorero
e01a3e0ea5
PublicDashboards: Added grafana special datasources to supported list ( #64930 )
2023-03-17 13:14:24 -03:00
Sofia Papagiannaki
f5cb8c660e
SQLStore: Fix setting query tries for integration tests ( #64944 )
...
* SQLStore: Pass testinfra database configuration to the test database
* Add test
* Bypass gocyclo check for initTestDB
2023-03-17 17:31:03 +02:00
Sven Grossmann
7261c6f7cd
DataSourceWithBackend: Add queryGroupId
to find correlated/related queries ( #64587 )
...
* add `correlationId` to queries
* trace correlation id in backend
* add correlation id to loki's span
* add correlation id to query chunks
* fix test
* fix DataSourceWithBackend test
* change to `queryGroupId`
* remove empty line
* fix test in `DataSourceWithBackend`
2023-03-17 15:48:13 +01:00
Alexander Weaver
9bcf8819d3
Alerting: Handful of small adjustments to log levels and parameters ( #64572 )
...
Calculate duration earlier in scheduler
2023-03-17 12:15:49 +00:00
gotjosh
02a8f62021
Alerting: Fix stats that display alert count when using unified alerting ( #64852 )
...
* Alerting: Fix stats when using unified alerting
2023-03-17 11:19:18 +00:00
Ashley Harrison
f4c62a5c5d
Navigation: handle case when there is no alerting node at all ( #64941 )
...
* handle case when there is no alerting node at all
* update backend tests
2023-03-17 11:08:36 +00:00
Sofia Papagiannaki
41843464d1
SQLStore: Fix SQLite error propagation if query retries are disabled ( #64904 )
...
* SQLStore: Add test when query retrying is disabled
* Fix condition
* Add test cases for sqlite3.ErrLocked
2023-03-17 12:57:13 +02:00
Ezequiel Victorero
8f0a9729f0
PublicDashboards: Allow hidden queries execution ( #64858 )
2023-03-16 15:39:17 -03:00
Ashley Harrison
54dd8943ca
Navigation: Correctly create Alerts and incidents
section when using legacy alerting ( #64924 )
...
check for legacy alerting node as well
2023-03-16 17:55:23 +00:00
Jo
0e565a2e6c
ServiceAccounts: Collect usage stat for service account forced expiry ( #64833 )
...
collect usage stat for service account forced expiry
2023-03-16 16:36:31 +01:00
Jo
7784782512
AuthN: Add password and login form stats ( #64868 )
...
* add password and login form stats
* fix method handler
* fix viewers can edit test
2023-03-16 16:34:43 +01:00
George Robinson
0b506b4ccc
Alerting: Update github.com/grafana/alerting ( #64882 )
2023-03-16 13:59:35 +00:00
Jo
6b6cf5f4b7
Cfg: Move ViewersCanEdit into cfg ( #64876 )
...
move ViewersCanEdit into cfg
2023-03-16 10:54:01 +01:00
Ieva
f966045129
Search: Improvements for starred dashboard search ( #64758 )
...
* improvements for starred dashboard search
* fix workflows for the case when no dashboards are starred
* PR feedback (don't query DB if starred dashboards and requested but no starred IDs are found) and linting
* return empty list not null in case of no starred dashboards
* return empty list not null in case of no starred dashboards pt 2
* return empty list not null in case of no starred dashboards pt 3
2023-03-16 09:20:07 +00:00
Jo
ccbf200c4a
SupportBundles: Add OAuth bundle collectors ( #64810 )
...
* wip
* add oauth support bundles
* add specific configs for generic oauth and azureAD
* add doc entry
* optimize struct packing
* Update pkg/login/social/azuread_oauth.go
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
* nit update
---------
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2023-03-16 09:46:25 +02:00
ismail simsek
0823672fce
Influxdb: Re-introduce backend migration feature toggle ( #64829 )
...
* Revert "Influxdb: Remove backend migration feature toggle (#61308 )"
This reverts commit 67c02f66
* Put feature toggle back
2023-03-15 18:12:16 +01:00
Ezequiel Victorero
3f5acf346d
PublicDashboards: Query collapsed panels inside rows ( #64779 )
2023-03-15 12:44:17 -03:00
Artur Wierzbicki
b6f77bdfdb
Chore: provide authn.Service
rather than *authnimpl.Service
( #64792 )
...
chore: provide `authn.Service` rather than `*authnimpl.Service` (#64792 )
2023-03-15 03:04:11 -07:00
ying-jeanne
6974f4340b
NestedFolders: Fix nested folder deletion ( #63572 )
...
---------
Co-authored-by: suntala <arati.rana@grafana.com>
Co-authored-by: ying-jeanne <ying-jeanne@users.noreply.github.com>
Co-authored-by: jeanne0731 <jeanne0731@users.noreply.github.com>
2023-03-15 09:51:37 +01:00
Yuri Tseretyan
85a954cd81
Alerting: Update scheduler to get updates only from database ( #64635 )
...
* stop using the scheduler's Update and Delete methods all communication must be via the database
* update scheduler's registry to calculate diff before re-setting the cache
* update fetcher to return the diff generated by registry
* update processTick to update rule eval routine if the rule was updated and it is not going to be evaluated at this tick.
* remove references to the scheduler from api package
* remove unused methods in the scheduler
2023-03-14 18:02:51 -04:00
Ryan McKinley
6751a93d49
FeatureToggles: remove open type declaration ( #64645 )
2023-03-14 19:47:32 +02:00
Jo
aade4b0bd2
AnonymousService: Test tagging service ( #64708 )
...
* add anonymous tagging tests
* lint
2023-03-14 10:47:34 +01:00
Alexander Weaver
faef3a8258
Alerting: Log error but don't fail initialization if state history connection test fails ( #64699 )
...
Don't return init error if ping fails, add tests
2023-03-13 15:54:46 -05:00
Ryan McKinley
6720690615
FeatureToggles: generate a csv file for easy auditing ( #64647 )
...
Co-authored-by: Artur Wierzbicki <artur.wierzbicki@grafana.com>
2023-03-13 08:07:12 -07:00
Artur Wierzbicki
08f2791b22
Chore: assign owner for prometheusAzureOverrideAudience
( #64620 )
...
assign the last owner
2023-03-13 16:56:55 +04:00
Andrej Ocenas
6647217208
Phlare: Use enum config to send deduplicated func and filenames ( #64435 )
2023-03-13 11:06:04 +01:00
Ryan McKinley
d5a9a0cea0
Chore: remove comments feature ( #64644 )
2023-03-11 04:28:12 -08:00
juanicabanas
222ad02176
PublicDashboards: Enable creation when dashboard has template variables ( #64560 )
2023-03-10 11:45:38 -03:00
Carl Bergquist
eb507dca89
Remotecache: rename setbytearray/getbytearray to set/get and remove codec ( #64470 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2023-03-10 13:57:29 +01:00
Domas
548a5054ad
Table: Introduce sparkline cell type ( #63182 )
2023-03-10 14:41:06 +02:00
Ashley Harrison
c955c20670
Chore: assign ownership of tracing feature flag to user essentials ( #64598 )
...
assign ownership of tracing feature flag to user essentials
2023-03-10 07:15:41 -05:00
juanicabanas
4d0e309d4e
PublicDashboards: New method created to get access through Request access page when its paused ( #64451 )
2023-03-09 14:17:54 -03:00
Karl Persson
8ef2afda87
ContextHandler: Always initiate permission map on signed in user ( #64541 )
2023-03-09 18:08:56 +01:00
Ieva
ed11c32c1d
Support bundles: fix user collector permissions and format collector output ( #64531 )
...
* fix user collector permissions and format collector output
* lint
2023-03-09 11:43:18 -05:00
Ashley Harrison
3336327306
Navigation: Fix Home logo always going to /login
( #62658 )
...
* only redirect to /login when anonymous access is disabled
* only search for dashboards when not logged in if anon access is enabled
* fix go logic
* add unit tests
2023-03-09 16:42:45 +00:00
Polina Boneva
ff6d601428
Chore: Assign grafanaDashboardsSquad as owners to some feature flags ( #64489 )
...
* assign grafanaDashboardsSquad as owners to some feature flags
2023-03-09 13:09:19 +02:00
Jean-Philippe Quéméner
fb5ed0b0b3
Alerting: fix flaky cache test ( #64499 )
2023-03-09 06:08:05 -05:00
Jo
4ee389676e
RemoteCache: Cleanup infra remote cache ( #64381 )
...
* add warning on Count
* add usagestats service
* fix typo
* remove unused glog
* remote cache stats collect
* add encrypt usage stat
* rename handler
* Update pkg/infra/remotecache/remotecache.go
Co-authored-by: Dan Cech <dcech@grafana.com>
* Update pkg/infra/remotecache/remotecache_test.go
---------
Co-authored-by: Dan Cech <dcech@grafana.com>
2023-03-09 09:26:13 +01:00