Commit Graph
531 Commits
Author SHA1 Message Date
Mariell Hoversholm bfbc601579 fix: set repository name in jobs (#99412) 2025-01-23 09:54:47 +01:00
Ryan McKinley eab86bb7d2 split replicator 2025-01-22 20:54:16 +03:00
Ryan McKinleyandClarity-89 f32d108810 POC/Provisioning: Export API stub (#99298)
Co-authored-by: Clarity-89 <homes89@ukr.net>
2025-01-22 16:24:08 +03:00
Roberto Jiménez Sánchez 8fd6f2de4a [Provisioning] Add repository info to folders (#99273)
* WIP: Add repository info to folders

* Fix issues
2025-01-22 14:04:08 +01:00
Ryan McKinley 3254a8d1bd merge main 2025-01-21 20:29:06 +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
Roberto Jimenez Sanchez 5f34f0aa14 Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-01-21 13:58:25 +01:00
Andres Martinez Gotor e747350fee Grafana Advisor: Skeleton app (#99242) 2025-01-21 12:31:33 +01: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 6f007d6986 return errors sooner 2025-01-21 11:40:01 +03:00
Ryan McKinley ac5dab220e fix panic... hopefully 2025-01-21 11:13:21 +03:00
Roberto Jiménez Sánchez 2046ee5458 [Onboarding] Fix import all from Github into Root (#99254)
* Allow sync with root folder

* Update list of required feature flags in Frontend

* Delete wrong feature flags
2025-01-20 14:18:39 +01:00
Mariell Hoversholm 40c1b3a7a9 Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-01-20 09:55:31 +01:00
Ryan McKinleyandStephanie Hingtgen 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
Mariell Hoversholm f06b5a5933 Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-01-17 10:26:39 +01:00
Stephanie Hingtgen e019e34eb5 Stats: use dashboard stats rather than list (#99130) 2025-01-17 08:19:56 +03:00
maicon b4ec11e150 Unistore: Ensure deprecated Folder ID gets stored on all modes (#99043)
* Unistore: Ensure deprecated Folder ID gets stored on all modes

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

---------

Signed-off-by: Maicon Costa <maiconscosta@gmail.com>
2025-01-16 15:01:00 -03:00
b3690f41e2 POC/Provisioning: Show setup errors in the UI (#99065)
* with warning

* with warning

* show error in UI

* show alert not popup

* show alert banner (not popup)

* no memo

* chore: upgrade `@grafana/lezer-logql` and `@grafana/monaco-logql` (#99076)

* [unistore] wire authlib compile (#99027)

* Wire authz client compile method

* add verb to metric

* remove tipo

* Update public/app/features/provisioning/SetupWarnings.tsx

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>

* merge main

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
Co-authored-by: Georges Chaudy <chaudyg@gmail.com>
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2025-01-16 17:08:17 +03:00
Ryan McKinley 0bef58898e Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-01-16 11:12:20 +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
Ryan McKinley f7639f4520 merge main 2025-01-15 19:38:09 +03: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
Karl Persson 3f71a72c1a Authz: Remove "wrapper" interface and only check feature toggle for grpc mode (#98933)
* Remove "wrapper" interface and only check feature toggle for grpc and cloud mode

* Only set name for update checks

* Set dashboard permissions for admin user
2025-01-15 09:23:56 +01:00
Ryan McKinley 437fea30a3 POC/Provisioning: Fix writing directly to a branch (#98948) 2025-01-14 15:17:37 +03:00
Ryan McKinley 094ca4e214 fix urls 2025-01-14 13:54:40 +03:00
Ryan McKinley 4f67536ff3 merge main 2025-01-14 13:33:22 +03:00
Ryan McKinleyandAlex Khomenko 75ac7acb91 POC/Provisioning: List objects from storage (#98874)
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2025-01-14 13:29:07 +03:00
Alexander Zobnin cbb688e910 Zanzana: Remove usage from legacy access control (#98883)
* Zanzana: Remove usage from legacy access control

* remove unused

* remove zanzana client from services where it's not used

* remove unused metrics

* fix linter
2025-01-14 10:26:15 +01:00
maiconandStephanie Hingtgen 766d645d82 Filewalkwithme/unistore refactor folder service to hit folder apiserver (#98409)
Refactor folder service to use Unified Storage

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-13 18:15:35 -03:00
Roberto Jimenez Sanchez a7e8972fc5 Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-01-13 16:17:15 +01:00
Stephanie Hingtgen 9ec10be1c7 K8s: Provisioned dashboard support (#98843) 2025-01-13 08:14:12 -06:00
Mariell Hoversholm 920e76cc52 feat: use app sdk logger (#98824)
* feat: use app sdk logger

* build: bump Go version

* chore: mark owner of logging lib

* chore: remove ineffectual ctx assignment
2025-01-13 09:19:21 +01:00
Ryan McKinley e2eeba7bb4 resolve conflicts 2025-01-13 09:04:41 +03: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
Matthew Jacobson ad1417b732 Alerting: Return default builtin templates in k8s templategroup API and UI (#96330)
* Alerting: PoC - default template in k8s templategroup API

* Move code to grafana/alerting

* Move validation to admission validation abstraction

* Testing

* Linting

* Workspace update

* Update grafana/alerting hash to the merged commit

* More user-friendly name and remove need for CREATE/UPDATE validation

Use __default__ for k8s object name and UID so that we don't need to restrict
CREATE/UPDATE for similarly named user-owned templates.
2025-01-10 19:53:18 -05:00
Ryan McKinley ed39259461 Search: Replace Origin calls with Repository (#98754) 2025-01-10 20:27:10 +02:00
Mariell Hoversholm 5547a04616 Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-01-10 08:39:53 +01:00
Scott Lepper 07d3bdbe72 [search] - filter by starred (#98651)
[search] - filter by starred
2025-01-09 16:45:04 -05:00
Mariell Hoversholm 2763efba12 Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-01-08 15:11:13 +01:00
Ryan McKinleyandMariell Hoversholm d0caf1135b POC/Provisioning: Update webhook test and constant (#98669)
* chore: regen openapi spec

* test: fix existing tests

* chore: pushing for Matheus

* test: ensure GH repository syncs successfully

* chore: ptr is not necessary

* chore: delete unnecessary function

* fix: use assert in require.Eventually blocks

* update webhook test

* fix: ensure deleting works

---------

Co-authored-by: Mariell Hoversholm <mariell.hoversholm@grafana.com>
2025-01-08 15:01:55 +01:00
Mariell Hoversholm 654387e357 POC/Provisioning: Test happy-path syncing with GitHub (#98663)
* chore: regen openapi spec

* test: fix existing tests

* chore: pushing for Matheus

* test: ensure GH repository syncs successfully

* chore: ptr is not necessary

* chore: delete unnecessary function

* fix: use assert in require.Eventually blocks
2025-01-08 14:48:43 +01:00
Mariell Hoversholm 84e7d17fc2 test: align test with reality: we always want to push sync jobs on push (#98676)
At some point (since 1a7017d14ec1a1ebd31ad4567fa301f0012f5ee3?) we have started always scheduling a sync job when a push
comes in. Let's align the test with reality.
2025-01-08 14:46:54 +01:00
Mariell Hoversholm 1a85f8f6c2 POC/Provisioning: Pass contextual logger (#98248)
* feat: pass contextual logger

* feat: define slogctx

* feat: use slogctx everywhere

* feat: delete plog

* feat: simplify slogctx further, and pass fewer values

* chore: remove unnecessary log msg

* chore: less keystrokes
2025-01-08 14:36:36 +01:00
Stephanie Hingtgen 5ed2a4c624 K8s: Dashboards: Add deletion validation for provisioned dashboards (#98504) 2025-01-08 06:58:21 -06:00
Ryan McKinley f97fa5e5e9 Provisioning: Update OpenAPI and k8s codegen (#98568)
* revert folder changes

* update snapshots

* openapi cleanup

* update codegen
2025-01-07 13:43:19 +03:00
Ryan McKinley d3f5640343 merge main 2025-01-07 07:55:20 +03:00