Commit Graph

132 Commits

Author SHA1 Message Date
Ryan McKinley c1b48cc488
Dashboards: Add apiVersion to dashboard table (#100845) 2025-03-04 07:47:45 +03:00
Ryan McKinley 5652e0b835
K8s/Dashboard/SQL: Support ascending order query (#101363) 2025-02-28 11:34:09 +03:00
Ryan McKinley 806c043e45
UnifiedStorage: Rename Batch processing to Bulk (#101413) 2025-02-28 08:41:08 +03:00
Ryan McKinley 58457d41d3
K8s/DualWriter: Remove legacy interface (#101395) 2025-02-27 13:27:28 +03:00
Todd Treece 3992ac2ac1
Dashboard: Multi-version builder (#100305) 2025-02-21 06:50:29 -05:00
Peter Štibraný b4c4b9abbd
Remove embedded WriteEvent from WrittenEvent struct, to avoid having unnecessary fields. (#101081) 2025-02-20 17:34:25 +01:00
Will Assis 74e621f377
fix(unified-storage): "sharedwithme" search in legacy modes returns everything (#101054)
* fix "sharedwithme" search returning everything when user does not have any shared dashboards
2025-02-20 09:53:06 -05:00
Ryan McKinley 5a40c84568
DualWriter: Support managed DualWriter (#100881) 2025-02-19 17:50:39 +03:00
Stephanie Hingtgen 67be9aeed6
K8s: Search fallback: Support all sort by methods (#100776) 2025-02-18 12:30:11 -06:00
Andrej Ocenas 78ef9fd9d9
QueryLibrary: rename API from peakq to querylibrary (#100813) 2025-02-17 17:49:11 +01:00
Stephanie Hingtgen 9494e6eb37
K8s: Search fallback: Support tag search (#100767) 2025-02-14 16:57:10 -05:00
Stephanie Hingtgen b89fd287c7
K8s: Dashboards: Fix history list (#100763) 2025-02-14 22:12:18 +02:00
Peter Štibraný 1856d47e47
Remove GetResourceClient hack from unified package. (#100636)
* Remove GetResourceClient hack from unified package.
2025-02-14 12:34:52 +01:00
Will Assis c963032915
search: handle "sharedwithme" use-case in both legacy/US modes (#100286)
* handle "sharedwithme" use-case in both legacy/US modes

* display "Shared with me" as location in dashboard list

* fix missing "TotalHits" prop in mode 2
2025-02-13 15:56:29 -05:00
Stephanie Hingtgen e2081c3e0c
K8s: Fix legacy fallback provisioning (#100566) 2025-02-13 21:32:25 +02:00
Will Assis 155492c8a5
search: handle "permission" query param in search (#100607)
handle "permission" query param in search
2025-02-13 11:35:53 -05:00
Stephanie Hingtgen df84d928e2
K8s: Folders: Fix legacy search (#100393) 2025-02-11 13:14:25 -06:00
Ryan McKinley a5355fd66c
Storage: Add command line tool to migrate legacy dashboards (and folders) to unified storage (#99199) 2025-02-11 19:57:46 +02:00
Scott Lepper 378bb6ea3f
[search] folder name lookup performance (#100154)
[search] use search for folder name lookup
2025-02-07 17:19:23 -05:00
Will Assis 7e11e604c7
[search] fix offset param in finddashboards (#100302)
* fix offset param in finddashboards

* separate offset from page in k8s search endponit
2025-02-07 13:24:27 -05:00
owensmallwood bf27e6d3ed
Unified Storage: Fix legacy dashboard query when using continue token (#100244)
* query for rows less than the continue token LastID since the queries are sorted by dash ID in DESC order

* run dashboard query tests
2025-02-07 12:16:41 -06:00
Georges Chaudy 6e748a9ee7
fix: Ensure we check the user identity for search (#100190)
Ensure we check the user identity for search
2025-02-07 12:32:45 +01:00
Arati R. d62c490af5
UniStore Big Objects: Fix spec rebuilding (#100183)
* Fix big object spec rebuilding and associated test

---------

Co-authored-by: Jean-Philippe Quémémer <jeanphilippe.quemener@grafana.com>
2025-02-07 09:29:25 +01:00
Jean-Philippe Quéméner c8609b8a61
feat(unified-storage): keep tags on reduce of dashboards (#100230) 2025-02-06 22:23:00 +01:00
Will Assis 1467d4b3e3
[search] Legacy search fallback support legacy query params (#99765)
* add support for deleted query param

* support tag query param in modes 2 and below

* handle dashboardIds

* hhandle dashboardUIDs

* handle folderUIDs query param

* handle page query param when hitting legacy storage

* handle sort query param

* handle type query param

* re-enable search fallback

* remove folder search workaround and fix /api/search to return both folders and dashboards when no title or type is provided

---------

Co-authored-by: Stephanie Hingtgen <stephanie.hingtgen@grafana.com>
2025-02-06 11:30:47 -05:00
Scott Lepper ce38eb3398
[search] fix dashboard list default sort (#99813)
[search] fix dashboard list default sort
2025-01-30 14:22:22 -05:00
Ryan McKinley 9d5af95565
K8s/OpenAPI: Remove /watch/ from the openapi spec (#99793) 2025-01-30 12:51:55 +03:00
Stephanie Hingtgen b06f83670e
Cleanup: comment out unreachable code (#99723) 2025-01-29 07:00:49 +03:00
maicon 20f02ec12f
Unistore: refactor provisioning to work with folder service (#99473) 2025-01-29 05:19:38 +02:00
Stephanie Hingtgen 6908f91428
Search fallback: prevent for now (#99725) 2025-01-29 04:57:34 +02:00
Ryan McKinley 5cd1efb2d1
K8s/Dashboard: Improve legacy error handling (#99658) 2025-01-28 18:47:02 -06:00
Stephanie Hingtgen 0cef2b9ae7
Dashboard Versions: Make compatible with app platform (#99327) 2025-01-28 08:17:52 -06:00
William Assis be8396cafa
Setup legacy search based on mode (#98908) 2025-01-27 12:32:07 -06:00
maicon 28ad61ff6c
Unistore: Get Folder By ID (#99131)
* Unistore: Get Folder By ID

Signed-off-by: Maicon Costa <maiconscosta@gmail.com>

---------

Signed-off-by: Maicon Costa <maiconscosta@gmail.com>
Co-authored-by: Stephanie Hingtgen <stephanie.hingtgen@grafana.com>
2025-01-22 01:45:59 -03:00
Ryan McKinley 3bc9f10bb3
Dashboards/SQL: Improve SQL query behavior (#99253)
* update legacy dashboard SQL

* merge main

* trim message
2025-01-21 19:35:33 +03:00
Ryan McKinley d8b6ded101
K8s: use deprecatedInternalID label rather than SQL annotation (#99263) 2025-01-21 12:38:14 +03:00
Ryan McKinley 680e6bc1f8
Authlib: Use types package rather than claims (#99243) 2025-01-21 12:06:55 +03:00
Ryan McKinley 356b32008b
Storage: Show history+trash using the list command (#99009)
Co-authored-by: Stephanie Hingtgen <stephanie.hingtgen@grafana.com>
2025-01-17 15:54:25 +03:00
Ryan McKinley 7c04247d6f
K8s/Dashboard: Set generation from version (#99142) 2025-01-17 13:52:01 +02:00
Stephanie Hingtgen e019e34eb5
Stats: use dashboard stats rather than list (#99130) 2025-01-17 08:19:56 +03:00
owensmallwood 7da6e48036
Unified Storage: Remove history stub (#99048)
remove history stub
2025-01-16 03:05:13 +02:00
Ryan McKinley cd46f1ddb9
Search: Remove history query (#99026) 2025-01-15 12:49:47 -06:00
owensmallwood d00592ffa0
Unified Storage: Make all dashboard fields searchable (#98899)
* wip. adding sprinkles fields.

* some refactoring. Works with sprinkles now.

* exclude top level dashboard hit fields from hit "fields"

* adds unit test for DecodeCell helper

* test can search for specific dashboard fields on bleve index

* adds search handler tests for the fields and tests for fields when transforming the search req to a bleve search req

* fix panic when calling fields.Set() with int32

* adds regression test

* remove unneeded method on test mock client

* fix linter issues

* updates dashboard test data for bleve tests

* remove DASHBOARD_LEGACY_ID from bleve_tests

* dont cast twice

* updates test to sort by dashboard_views_last_1_days

* declare excludedFields outside of function

* fixes sorting by dashboard fields - prepends "fields." to any dashboard fields we try to sort by

* uses map for excludedFields

* expects fields to be array-style url param

* change method name

* fixes failing tests - needed to add column type to mocks
2025-01-15 10:23:05 -06:00
Igor Suleymanov 7f04f66137
Allow listing Dashboards through k8s APIs (#98997)
What

This PR changes the dashboard authorizer logic to no longer require
requester to be the super admin user in order to list dashboards using
k8s APIs.

Why

We no longer need this precondition - dashboards should be listable
based on the regular authorizer logic.

Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com>
2025-01-15 11:50:28 +02:00
Stephanie Hingtgen 9ec10be1c7
K8s: Provisioned dashboard support (#98843) 2025-01-13 08:14:12 -06:00
Scott Lepper 01aeb56646
[search] fix browse mode to show dashboards (#98842)
[search] fix browse mode to show dashboards
2025-01-11 11:09:31 -05:00
Ryan McKinley ed39259461
Search: Replace Origin calls with Repository (#98754) 2025-01-10 20:27:10 +02:00
Scott Lepper 07d3bdbe72
[search] - filter by starred (#98651)
[search] - filter by starred
2025-01-09 16:45:04 -05:00
Stephanie Hingtgen 5ed2a4c624
K8s: Dashboards: Add deletion validation for provisioned dashboards (#98504) 2025-01-08 06:58:21 -06:00
Stephanie Hingtgen c566e6af4e
K8s: Dashboards: Fix search parsing (#98560) 2025-01-06 15:41:45 -06:00