Commit Graph
15525 Commits
Author SHA1 Message Date
Ryan McKinley ebeb0c67be merge main 2025-02-13 17:17:46 +03:00
Ryan McKinley 06de4c0041 Provisioning: legacy → git → unified (#100481) 2025-02-13 17:13:32 +03:00
Karl Persson a58564a35e Unified Storage: Register metrics (#100600)
use seperate once struct
2025-02-13 14:24:59 +01:00
Karl Persson be60ef0500 IDToken: cache invalidation (#100592)
* Make org role part of id token cache key. This way we will always sign a new token when it changes

* Remove calls to remove id token
2025-02-13 14:10:58 +01:00
Ivana HuckovaandWill Browne a69fac6e16 Mark grpc data source timeouts as cancelled queries (#100573)
* Set up to reproduce issue locally

* add check for deadline exceeded

* Revert "Set up to reproduce issue locally"

This reverts commit d8d9b354ca.

* Trigger build

---------

Co-authored-by: Will Browne <will.browne@grafana.com>
2025-02-13 13:40:53 +01:00
Mariell Hoversholm 45a586c725 feat: regen openapi 2025-02-13 13:25:21 +01:00
Ryan McKinley 3c56e32b0c K8s/Utils: Find title in unstructured content (#100576) 2025-02-13 14:04:03 +03:00
Karl Perssonandgamab 1b1954de28 Authz: add support to use folder api to fetch folder tree (#100038)
* Add FolderStore interface

* Authz: add implementation to use folders api and use it inproc with loopback config

* Add tracing and add rest.Config for talking with folder api using access tokens

* Restructure test to get rid of circular dependencies in tests

* use correct group version kind

---------

Co-authored-by: gamab <gabriel.mabille@grafana.com>
2025-02-13 11:59:59 +01:00
Tito Lins ae9837b793 Alerting: Add alertmanager integration tests (#100106) 2025-02-13 11:36:45 +01:00
Karl Persson 0b4c622df8 AuthN: Refetch user on "ErrUserAlreadyExists" (#100346)
* AuthN: Refetch user on "ErrUserAlreadyExists"
2025-02-13 11:27:57 +01:00
Ryan McKinley 5c8eaa2abf remove unused change 2025-02-13 12:58:25 +03:00
Mariell Hoversholm 158eebe45b Provisioning: Encrypt GitHub token (#100515)
* feat: new secrets impl

* fix: send interval as a number

* feat: use UUIDs for webhook secrets

* Provisioning: Encrypt GitHub token

* refactor: have a wrapping interface

* refactor: simplify decryption

* refactor: move encryption to mutation hook

* feat: use omitempty again

* feat: always decrypt

* chore: update comment to reality
2025-02-13 10:33:26 +01:00
Dominik SüßandMarcus Andersson 8a8e47fcea PluginExtensions: Added support for sharing functions (#98888)
* feat: add generic plugin extension functions

* updated betterer.

* Fixed type issues after sync with main.

* Remved extensions from datasource and panel.

* Added validation for extension function registry.

* Added tests and validation logic for function extensions registry.

* removed prop already existing on base.

* fixed lint error.

---------

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2025-02-13 10:18:55 +01:00
Mariell Hoversholm dbc4031a2a Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-02-13 09:20:15 +01:00
Karl Persson df64dd0762 LibraryElements: Propagate service identity in context when searching for dashboards (#100220)
* Propagate service identity in context when searching for dashboards
2025-02-13 09:17:16 +01:00
Mariell Hoversholm 2dee9ccbbc APIServer: Cancel forked context after handler returns (#100504)
We currently cancel the context when the adapter function is done. We should wait for the entire handler we're wrapping
to finish before cancelling our context.
2025-02-12 23:54:58 -08:00
Ivan Ortega Alba 2b2b19478a Dashboard V0->V1 Migration: Schema migration v41 (#100554) 2025-02-13 08:19:51 +01:00
Ryan McKinley 7051c5389c merge main with sprinkles stats commeted out 2025-02-13 09:53:51 +03:00
Ryan McKinley f2911bdebb Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-02-13 09:45:28 +03:00
owensmallwood a34e7e176d Unified Storage: Sprinkles latency metric (#100542)
* add sprinkles latency metric

* fixes failing tests - forgot to register metric only once
2025-02-12 16:22:18 -06:00
Sergej-Vlasov d1dee968c3 Schema V2: Adjust quick_ranges in time settings and remove time_options (#100135)
* adjut quickRanges type in v2

* clean up unused time_options property

* remove deprecated time_options property on time picker

* add schema migration for time_options

* adjust test
2025-02-12 19:23:09 +00:00
Ivan Ortega Alba e60e217a23 Dashboard V0->V1 Migration: Schema migration v37 (#99962) 2025-02-12 21:19:57 +02:00
Ivan Ortega Alba 950726a3c5 Dashboard V0->V1 Migration: Schema migration v38 (#99778) 2025-02-12 19:52:39 +01:00
Alexander Akhmetov 3cc4320aa9 Alerting: Add rule conversion package (#100224) 2025-02-12 19:38:48 +02:00
Roberto Jiménez Sánchez 06a8465bd4 [Provisioning] Record resource changes by group and resource in sync (#100535) 2025-02-12 19:40:48 +03:00
Clarity-89 0f382ea04f Merge branch 'main' into grafana-git-ui-sync 2025-02-12 17:00:53 +02:00
Misi ee0a1391df Auth: Add OrgRole to ID token (#100383)
* Changes for Users and ServiceAccounts

* Align tests
2025-02-12 05:51:29 -08:00
Ryan McKinley befa028784 Storage: Add ManagedDualWriter mode (#100231) 2025-02-12 15:51:37 +03:00
Alex Khomenko 47389862b0 POC/Provisioning: Fix repos status update (#100483)
Fix repos status update
2025-02-12 12:41:00 +02:00
Mariell Hoversholm e5814ea082 chore: remove k8sctx 2025-02-12 10:12:24 +01:00
Mariell Hoversholm a0701a42f1 APIServer: Propagate a new context with limited information (#100374)
* APIServer: Propagate a new context with limited information

* APIServer: Remove error return

* APIServer: Test that context propagation does fork

* APIServer: Fix golangci-lint lints

* chore: make update-workspace
2025-02-12 10:11:52 +01:00
Mariell Hoversholm a2f6094bb9 Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-02-12 10:11:16 +01:00
Jean-Philippe Quéméner aca024bcbb fix(unified-storage): use dedicated mocks per storage type (#100389) 2025-02-12 09:59:21 +01:00
Mariell Hoversholm 0910a0420e Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-02-12 08:32:26 +01:00
Alexander Akhmetov 9593e51da7 Alerting: conversion API structure (#100258) 2025-02-12 08:13:21 +01:00
Stephanie Hingtgen df84d928e2 K8s: Folders: Fix legacy search (#100393) 2025-02-11 13:14:25 -06:00
Ryan McKinley 459240e9a8 merge main 2025-02-11 21:01:39 +03: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
Jean-Philippe Quéméner d1b4162a33 refactor(unified-storage): measure also failed queries (#100430) 2025-02-11 16:19:43 +01:00
Kyle Brandt f7588376df SQL Expressions: (Chore) Update code for latest plugin-sdk data pkg (#100425)
Use new NilAt and SetRefId methods
2025-02-11 15:15:54 +00:00
Roberto Jiménez SánchezandClarity-89 3509e795b4 [Provisioning] Improve Recents Jobs UI (#100428)
* Move SyncStatus to separate component

* Move resources to separate file

* Remove Edit button in listing page

* Put sync status as part of resources tab

* Use repository description as subtitle

* Overview tab

* Add cards to overview

* Remove settings tab

* Add circle

* Use page actions intead

* Check test option

* Update overview

* Make the resources counts prettier

* Improve styling

* More styling

* Add padding

* Full sync instead

* Move recent jobs to overview

* Display started, finished and coloured status

* Show more information

* Add tooltips for errors and summary

* Display summary as tooltip table

* Move table as expandable row

* Move errors to the expandable cells

* Improve styling

* Use Badge instead Tag

* Fix linting

* Split into smaller components

* Minor tweaks

---------

Co-authored-by: Clarity-89 <homes89@ukr.net>
2025-02-11 15:54:10 +01:00
Yuri Tseretyan 28f21e0a0d Alerting: Do not record rule version if no difference (#100364) 2025-02-11 09:46:26 -05:00
Yuri Tseretyan 4cac3158c7 Alerting: Fix alert rule copy to include metadata (#100212)
* copy metadata

* add tests for copy and generator

* extract copy rule to a production method and update usages

* fix tests
2025-02-11 09:46:02 -05:00
Jean-Philippe Quéméner 8a9f6416d2 fix(unified-storage): error on failed primary deletes in mode2 (#100427) 2025-02-11 15:39:39 +01:00
Mariell Hoversholm 4cee0520e5 Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-02-11 14:42:49 +01:00
Alex KhomenkoandRyan McKinley ecca6d32af POC/Provisioning: Combine owner/repo into URL field (#100397)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2025-02-11 16:34:57 +03:00
Alexander Zobnin 7234a17d1d Zanzana: Use authzService audience (#100417) 2025-02-11 14:25:30 +01:00
Alexander Zobnin 5118e82e8c Zanzana: Run reconciliation in its own service (#100361)
* Zanzana: Start reconciliation in its own service

* cleanup

* update go workspaces

* refactor

* remove unused code

* move func definition
2025-02-11 14:09:39 +01:00
Ryan McKinley e3cb73301e Authz/Schema: Remove unused stub cue definitions (#100387) 2025-02-11 15:24:11 +03:00
Roberto Jiménez Sánchez d503fd913c [Provisioning] Repository Overview & Toolbar (#100402)
* Move SyncStatus to separate component

* Move resources to separate file

* Remove Edit button in listing page

* Put sync status as part of resources tab

* Use repository description as subtitle

* Overview tab

* Add cards to overview

* Remove settings tab

* Add circle

* Use page actions intead

* Check test option

* Update overview

* Make the resources counts prettier

* Improve styling

* More styling

* Add padding

* Full sync instead

* Fix syntax issues

* Remove duplicate status badge
2025-02-11 13:18:42 +01:00