Ryan McKinley
9fb61bd9f6
Live: more cleanup ( #115144 )
2025-12-16 08:22:19 +03:00
Renato Costa
c73cab8eef
chore: add cleanup task for duplicated provisioned dashboards ( #115103 )
...
* chore: add cleanup task for duplicated provisioned dashboards
2025-12-12 13:56:47 -05:00
Stephanie Hingtgen
5ca221743f
Dashboards: Prevent query for ID 0; improve logging ( #115120 )
2025-12-11 00:02:52 -07:00
Stephanie Hingtgen
a99946d921
Dashboards: Cleanup includes fields ( #114455 )
2025-11-26 02:58:20 +00:00
Renato Costa
6e0093f048
fix: update search request for existing provisioned dashboards in modes 3+ ( #114412 )
...
Fix search for existing provisioned dashboards in modes 3+
The search query was not requesting the dashboard's "legacy ID". As a result,
the provisioning process would not find existing provisioned dashboards, making
copies of these dashboards every time there was a change in the provisioned
dashboard's definition.
2025-11-25 19:38:26 +01:00
Jean-Philippe Quéméner
b57e6383e4
refactor(unified-storage): move builders in their own package ( #114375 )
2025-11-25 10:58:03 +01:00
Rafael Bortolon Paulovic
5a111bc087
fix: delete provisioned dashboard in unified if forceDeleteRules is set ( #113839 )
2025-11-14 14:11:05 +01:00
Stephanie Hingtgen
2d4e432239
Dashboard provisioning: Add support for v2 schema ( #113620 )
2025-11-10 17:45:37 -06:00
Stephanie Hingtgen
445e88cb93
Dashboard Provisioning: Add duplicate cleanup for modes 0-2 ( #113336 )
2025-11-02 20:39:15 +00:00
Stephanie Hingtgen
ea90bdff9c
Dashboard: Fix editor specific permissions in /api ( #113292 )
2025-10-31 09:03:35 -05:00
Stephanie Hingtgen
83bed02a41
Dashboards: Fix bug with anon users with editor permissions creating dashboards ( #113260 )
2025-10-31 09:05:38 +03:00
maicon
cb86be2e32
Unistore: ensure dashboard DeleteInFolders work on both storages ( #113197 )
...
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
2025-10-30 11:51:31 +01:00
Denis Vodopianov
81683d554d
chore : Deprecating FeatureToggles.IsEnabledGlobally ( #112885 )
...
* add deprecation on featuremgmt.IsEnabledGlobally
* add nolint reason
* add reasonable deprecation message
* remove junk edits
* add more nolints
* addressing review comments
* Update pkg/services/featuremgmt/models.go
Co-authored-by: Dave Henderson <dave.henderson@grafana.com >
---------
Co-authored-by: Dave Henderson <dave.henderson@grafana.com >
2025-10-24 12:02:53 -04:00
owensmallwood
c8664d303e
Unified Storage: Match all included tags ( #112748 )
...
* if you include multiple tags in the search query, search for them using AND logic
* go-fmt
2025-10-21 11:54:14 -06:00
Ieva
aeb041a9af
Folder permissions: Remove default creator can Admin permissions for folders ( #111984 )
...
* Remove default creator can Admin permissions for folders
* Actually, we only need to set permissions for root level folders
* Put back creator permission
* linting
* use FT for assessing what permissions to set
* fix tests
2025-10-14 14:54:19 +01:00
Ryan McKinley
c4a2bb5540
Search: Include managedBy in DashboardHit result ( #111600 )
2025-09-29 14:28:26 +03:00
Alex Khomenko
571b3226ba
Dashboard search: Return description in search results ( #110857 )
...
* DashList: Add description
* Support unified storage
* Support unified storage[2]
* Exclude description from field
* Cleanup
* add description
* Revert dashlist changes
* Update cue
* Fix test
---------
Co-authored-by: Ryan McKinley <ryantxu@gmail.com >
2025-09-16 18:17:22 +03:00
Ryan McKinley
1944d2dd0e
Provisioing: Update provisioned folder with a manager identity ( #110988 )
2025-09-12 10:50:10 +03:00
Ryan McKinley
9a54243f09
Chore: update golang.org/x/exp ( #110980 )
2025-09-11 22:13:07 +03:00
Igor Suleymanov
4161f3a5ca
Support dashboard restore across API versions ( #110694 )
...
What
This commit refactors the logic to restore a dashboard from a version.
The logic is moved from the API handler to the dashboard versions service,
which now supports restoring dashboards of different API versions.
Why
To make sure that dashboard version restoration works with v2 dashboards
API, as well as future API versions.
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
2025-09-11 13:35:58 +03:00
Ryan McKinley
3f4c523ef5
Provisioning: Add k8s annotations for legacy folder provisioning ( #110827 )
2025-09-09 17:01:08 +00:00
Georges Chaudy
7aa0622558
dashboard: editors can EDIT instead of admin. ( #110650 )
...
revert editor can admin
2025-09-09 14:11:16 +02:00
owensmallwood
ffcc0e8de0
Unified Storage: Fix sortMeta always zero in legacy search api ( #110779 )
...
sort field is included in search request fields
2025-09-08 21:43:47 +00:00
Ryan McKinley
7c95d3c8a9
Folders: Split legacy out of folder.Service (and remove folder.FolderStore) ( #110734 )
2025-09-08 18:27:49 +03:00
Peter Štibraný
7fd9ab9481
Replace check for integration tests. ( #110707 )
...
* Replace check for integration tests.
* Revert changes in pkg/tsdb/mysql packages.
* Fix formatting of few tests.
2025-09-08 15:49:49 +02:00
Igor Suleymanov
a07a8d0ba2
Fix listing and getting dashboard versions across different API versions ( #109860 )
...
* Fix listing and getting dashboard versions across different API versions
What
This commit updates dashboard version service to use API version aware
API client. The service now also supports parsing different API version
representation of dashboards.
The API version aware client is also updated to support listing across
versions.
Why
Currently listing or getting specific versions is broken for all v2
versions of the dashboard API, especially if the dashboard being checked
is still saved using v1 APIs.
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
* Remove superfluous tracing spans
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
---------
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
2025-09-03 13:51:11 +03:00
Stephanie Hingtgen
6b86277ecf
Nested folders: Remove feature flag ( #109212 )
2025-08-06 10:07:23 +03:00
Stephanie Hingtgen
34019e5ec0
Library Panels: Remove k8s connections feature flag ( #108881 )
2025-07-30 16:46:19 +00:00
Stephanie Hingtgen
1f025fe1a3
K8s: Remove kubernetesClientDashboardsFolders feature flag ( #108626 )
2025-07-29 16:52:57 -05:00
Stephanie Hingtgen
fe906dfc1e
Dashboards: Move to integration tests ( #108734 )
2025-07-29 09:52:27 +02:00
Serge Zaitsev
a95fb3a37c
Chore: Omit integration tests if short test flag is passed ( #108777 )
...
* omit integration tests if short test flag is passed
* Update pkg/services/ngalert/models/receivers_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/services/ngalert/models/receivers_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/cmd/grafana-cli/commands/datamigrations/to_unified_storage_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/services/ngalert/models/receivers_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* fix the rest
* false positive
---------
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
2025-07-28 13:38:54 +02:00
Stephanie Hingtgen
5ec3a2b758
K8s: Library panels: move to separate ff ( #108384 )
2025-07-21 12:53:46 +00:00
maicon
2dba473015
Feature/unified storage search dual reader ( #108291 )
...
* Add UnifiedStorageSearchDualReaderEnabled feature flag
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
* Refactor UniSearch Dual Reader
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
* Run make gen-feature-toggles
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
* fix: unit tests search_client
Signed-off-by: Bruno Abrantes <bruno@brunoabrantes.com >
* feat: cancels shadow search requests after 500ms
Signed-off-by: Bruno Abrantes <bruno@brunoabrantes.com >
---------
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
Signed-off-by: Bruno Abrantes <bruno@brunoabrantes.com >
Co-authored-by: Will Assis <william@williamassis.com >
Co-authored-by: Bruno Abrantes <bruno@brunoabrantes.com >
2025-07-18 14:43:56 +02:00
Serge Zaitsev
f66a693438
Chore: Rename integration tests to follow the common convention ( #105987 )
...
* automatically rename integration tests to follow the common convention
* name tests differently
* alter column type to bigint
* update another column to bigint
* add another alter
* fix subquery for mysql
2025-06-29 16:56:24 +02:00
Stephanie Hingtgen
79fe8a9902
Library Panels: Modify connection api endpoint to be compatible with unified storage ( #107088 )
2025-06-25 22:21:56 +00:00
Stephanie Hingtgen
ab99211b40
Dashboard Provisioning: Reduce db load ( #106114 )
2025-05-29 09:39:07 +03:00
Stephanie Hingtgen
5c0194955e
Dashboards: Fix FindDashboards when kubernetesClientDashboardsFolders is disabled ( #105974 )
...
Dashboards: fix legacy FindDashboards
2025-05-24 07:06:30 -06:00
Michael Mandrus
6205e126cc
CloudMigrations: Fix issues with snapshot resource limits ( #105425 )
...
* fix bulk inserts
* commit progress so cursor doesn't sabotage me
* add more tests
* get everything working
* rename variable
* update comment
* regen mocks, fix k8s list method maybe
* fix bug with duplicate entries
* lint
* Snapshots: Use slices.Chunk for batching inserts
* remove extra linebreak
---------
Co-authored-by: Matheus Macabu <macabu.matheus@gmail.com >
2025-05-19 11:37:22 -04:00
Jean-Philippe Quéméner
002f46736a
refactor(unified-storage): move generated protos to own pkg ( #105356 )
2025-05-15 21:36:52 +02:00
Ryan McKinley
da24ad06bd
Provisioning: Hide full path for classic provisioing resources ( #105440 )
2025-05-15 16:01:12 +00:00
Stephanie Hingtgen
6244b4d501
Dashboards: Fix cleanup job ( #104822 )
2025-05-01 17:27:13 +03:00
Stephanie Hingtgen
7430a18bd3
Dashboards: Fix missing folder info in /search for dashboards ( #104666 )
...
Dashboards: add missing folder info to /search
2025-04-30 05:23:52 +03:00
Stephanie Hingtgen
9968576acf
Folders & Dashboards: Cleanup timestamps and error codes ( #104665 )
...
K8s: Fix timestamps and error codes
2025-04-30 03:03:21 +03:00
Todd Treece
24caaa7442
Dashboards: Set provisioning concurrency limit ( #104507 )
2025-04-25 12:43:29 -04:00
Stephanie Hingtgen
72ea92f275
Provisioning: Remove warnings for valid usage ( #104555 )
2025-04-25 16:50:47 +01:00
Stephanie Hingtgen
b5281c923f
K8s: Dashboards: Fix provisioned dashboard cleanup ( #104504 )
2025-04-25 05:55:50 -06:00
Ieva
e385237daf
Access control: Make sure that user permission cache is cleared after new dashboard and folder creation ( #104193 )
...
* make sure that user permission cache is cleared after new dashboard and folder creation
* more test fixes
* Update pkg/services/dashboards/service/dashboard_service.go
* check identity type in SetDefaultPermissionsAfterCreate, set default permissions for service accounts
* set SA permissions for folders as well
* fix tests
2025-04-24 16:02:39 +03:00
Ryan McKinley
b09d79b21c
K8s/Dashboard: Promote from alpha1 to beta1 ( #104009 )
2025-04-23 20:54:35 +03:00
Artur Wierzbicki
fd99b67205
Dashboards: Preserve schema version in /api ( #104213 )
...
---------
Co-authored-by: Stephanie Hingtgen <stephanie.hingtgen@grafana.com >
2025-04-21 10:51:28 -05:00
Marco de Abreu
2a61763703
Dashboards: Don't run cleanup job when backed by legacy storage ( #104001 )
...
Don't run dashboard cleanup job when backed by legacy storage
Co-authored-by: Marco de Abreu <18629099+marcoabreu@users.noreply.github.com >
2025-04-15 13:43:05 -07:00