Commit Graph

62046 Commits

Author SHA1 Message Date
Sam Jewell 79ac0b102d
WIP 2025-10-01 15:25:10 +01:00
Moustafa Baiou a459d43746 Alerting: Refactor prometheus api functions
Make state and health filters public

Co-authored-by: William Wernert <william.wernert@grafana.com>
Co-authored-by: Fayzal Ghantiwala <fayzal.ghantiwala@grafana.com>
2025-09-05 10:59:16 -04:00
Yuri Tseretyan ce55d70fa5
Alerting: Refactor notification legacy storage (#110619)
* make legacy store expose only model.Receiver
* use integration as provenance type provider
* use revision RenameReceiverInRoutes
* introduce function GetReceiversNames in config revision

---------

Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com>
2025-09-05 14:46:46 +00:00
Alex Khomenko 439fefeda8
Provisioning: Delete repo config when navigating away (#110655) 2025-09-05 17:32:26 +03:00
Stephanie Hingtgen c4bc83019d
Provisioning: Fix bug in config reading (#110703) 2025-09-05 14:30:43 +00:00
Bogdan Matei 3e14a48ebb
Update `swagger-ui-react` to fix `sha.js` issues (#110696) 2025-09-05 14:04:17 +00:00
Bruno 9a641c651f
secrets: update test to accept []byte(nil) and []byte{} (#110630)
Co-authored-by: Matheus Macabu <macabu.matheus@gmail.com>
2025-09-05 10:19:57 -03:00
Dominik Prokop b4e63c36c3
Migration v42: HideFrom tooltip consistency migration (#110517)
* Migration to be verified: v42 HideFrom tooltip migration

* snap update

* make gen cue

* Add comments of 42 being the final version
2025-09-05 15:07:30 +02:00
Gabriel MABILLE 801fde02a7
`grafana-iam`: Implement `resourcepermission` creation (#110246)
* Extract from #108753

Co-Authored-By: mohammad-hamid <mohammad.hamid@grafana.com>

* Tackle create

Co-Authored-By: mohammad-hamid <mohammad.hamid@grafana.com>

* WIP use identity store to resolve role names

* WIP

* create role

* Remove unecessary comments

* comments

* sql templates

* test role insert tplt

* Add tests 😅

* Test permission insert template

* Test permission delete template

* Test assignment_insert template

* Manually test insertion

* Remove delete permissions. This is a create case we don't have permissions for that resource

* generate name handled by the apiserver library

* Remove comment and conversion

* Small renaming nits

* changes from main

* Add storage backend tests

* Add test to sql

* Test role contains a unique permission

* linting

* Account for pr feedback

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>

* Reuse mappers

* Move function to models

* Add check between name and spec resource

* Check if the resource does not already exist

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>

* fix query

* Check basic roles

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>

* Account for error

* Make struct names consistent

* Nit. I prefer createAndAssignManagedRole

* Remove notifyign

* log errors instead of returning them

* Fix exist query join

* Test errors

* Remove dup

---------

Co-authored-by: mohammad-hamid <mohammad.hamid@grafana.com>
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2025-09-05 14:22:25 +02:00
maicon 726c7ba71b
search: Force index IDX_dashboard_title when searching dashboards (#110595)
Signed-off-by: Maicon Costa <maiconscosta@gmail.com>
2025-09-05 08:34:29 -03:00
Peter Štibraný bd529226a3
unified-storage search: return results matching all search terms (#110672)
* Extract common indexing code.

* Extract common search code.

* Match all terms in the search query.
2025-09-05 11:00:54 +00:00
Roberto Jiménez Sánchez feb4368de5
Provisioning: Build unified storage client for operators (#110671)
* Build unified storage client in config
* Testing ticker to count managed objects
2025-09-05 10:51:51 +00:00
Alex Khomenko 647c1424d4
Restore dashboards: Clear cache when deleting or restoring dashboards (#110513)
* Restore dashboards: Clear cache when deleting or restoring dahboards

* More cache clearing
2025-09-05 13:03:13 +03:00
Ryan McKinley 9f7101e2ad
Chore/Folders: reduce direct use of settings.Cfg (#110657) 2025-09-05 12:50:19 +03:00
Dominik Prokop 9920f4b437
DatasourceSrv: Fix getInstanceSettings for type-only datasource references (#110612)
• Add handling for type-only refs like {type: 'prometheus'} in getInstanceSettings()
• Ensure consistency with get() method behavior
• Add test case verifying both methods return same results for type-only refs
2025-09-05 11:30:13 +02:00
Hugo Häggmark 5eb42ece91
Chore: clean up angular related test (#110659) 2025-09-05 11:28:51 +02:00
Roberto Jiménez Sánchez 1b9e479b68
Provisioning: Abstract away how we build discovery and dynamic clients (#110662)
Abstract away how we get discovery and dynamic clients
2025-09-05 09:22:30 +00:00
grafana-pr-automation[bot] 6a54340501
I18n: Download translations from Crowdin (#110642)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2025-09-05 09:02:17 +00:00
Alex Khomenko a8378af6ed
Provisioning: Fix loading bitbucket branches (#110651)
* Provisioning: Fetch bitbucket branches

* reuse func

* Prettier
2025-09-05 07:42:43 +00:00
Alex Khomenko f347bb4f61
Provisioning: Hide other providers if empty (#110652) 2025-09-05 07:16:07 +00:00
Ryan McKinley eeb940e733
Chore: Replace hand crafted mocks with mockery (#110627) 2025-09-05 07:13:15 +00:00
Diego Giagio 554cd6f198
Postgres: Fix JSON data type mapping with PGX driver (#110566) 2025-09-05 08:39:56 +02:00
ismail simsek 5872672042
Prometheus: Properly handle no __name__ case on RawListItem (#110608)
* handle no __name__ case

* lint:prune

* Add nomargin

---------

Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2025-09-05 06:17:51 +00:00
Stephanie Hingtgen 29ef525923
Provisioning: Allow disabling controllers (#110641) 2025-09-05 07:48:23 +02:00
Stephanie Hingtgen 9ddc70423b
Provisioning: Cleanup tester interface (#110640)
* Provisioning: Cleanup tester interface

* undo accidental change

* cleanup

* cleanup test
2025-09-05 07:47:27 +02:00
Juan Cabanas c9eecf850b
Saved Queries: renderSaveQueryButton change (#110623)
* refactor in saved query buttons

* naming modified

* tests removed because component is now enterprise

* feedback applied

* translation removed

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2025-09-04 21:58:39 -07:00
Stephanie Hingtgen b567cde3d3
Provisioning: Reuse controller from registry (#110639) 2025-09-05 01:13:55 +00:00
Leon Sorokin beaa512eb3
PanelQueryRunner: Use rxjs forkJoin (like Scenes), not lodash merge (#109220) 2025-09-04 19:54:47 -05:00
Stephanie Hingtgen f302a3d538
Provisioning: Cleanup unused variables in controller (#110637) 2025-09-05 00:51:26 +00:00
Kevin Minehart 4810e51743
CI: pin dagger version to match go.mod (#110638)
* pin dagger version to match go.mod

* set in e2e too
2025-09-05 00:28:27 +00:00
Ryan McKinley 4723d2d8de
Stars: implement full CRUD operations via legacy service (#110489) 2025-09-04 14:49:49 -05:00
Ryan McKinley 1dadf2cad9
Stars: Remove deprecated internal ID apis (#110499) 2025-09-04 14:45:01 -05:00
Tom Ratcliffe 3d6d632686
Chore: Remove betterer (#110469) 2025-09-04 18:17:53 +01:00
Will Assis ea7c370edd
unified-storage: add ListSinceModified to kv store (#110250)
* implement ListKeysSince in event store

 implement data store version

---------

Co-authored-by: Georges Chaudy <chaudyg@gmail.com>
2025-09-04 12:26:40 -04:00
Bogdan Matei eed8d189ac
Dashboards: Refactor conditional rendering (#108596) 2025-09-04 16:22:26 +00:00
Matias Chomicki 456bd0e81a
LokiOptionFields: track max lines (#110583) 2025-09-04 18:19:23 +02:00
Josh Hunt 45df6c31d9
FS: Add support for local dev configs (#110508)
* FS: Add support for local dev configs

* document AUTO_DOWN

* remove zig
2025-09-04 17:17:32 +01:00
Jean-Philippe Quéméner a9f9ff8580
fix(search): bump the limit for locationinfo search (#110604) 2025-09-04 17:36:52 +02:00
Ihor Yeromin 8331661fb7
Adhoc filter: Test filter for value buttons integration (#110514)
* test(adhoc-filter): filter for value buttons integration
2025-09-04 15:22:10 +00:00
mohammad-hamid abcdf20105
`grafana-iam`: Implement `resourcepermission` get (#110256)
* resource permissions get

* address review feedback

* address comments
- read using rp name
- narrow by scope and actionsets
- update sql tests

* align with verb simplification

* keep original format to avoid conflicts

* add sqltests

* cleanup

* Remove unecessary errors

* Move query template to queries

* Use splitN to make sure we have three parts

* Revert user permission management for now. We don't need it

* Revert error change

* group permissions by resource

* extract parse scope

* Move sql_test

* Move & test parseScope

* Add tests to getResourcePermission

* Linting

* Use namespace

* Add test to the backend

* Ongoing tests

* Remove pagination, fix query boolean, insert basic role binding

* Linting

* Straightened the created and updated times

* error handling and uniformization with other backend

* Restore comments to avoid later conflicts

* Integration testing

* switch to function, no need to make it a method

* isServiceAccount should default to FALSE instead of TRUE :surprised:

* PR feedback

* Sort spec permissions

* Shouldn't happen but double proofing

---------

Co-authored-by: Gabriel Mabille <gabriel.mabille@grafana.com>
2025-09-04 17:14:15 +02:00
Alexa Vargas 40bf167cb7
Saved Query: Add `onSelectQuery` to `QueryLibraryContext ` (#110536)
* Saved Query: Remove onSelectQuery prop requirement from components using saved queries

* preserve onSelectQueryCallback on SaveQuery

* add missing onSelectQueryCallbacks
2025-09-04 16:52:42 +02:00
Ezequiel Victorero 76c8fcf99d
Saved Queries: Promote to public preview (#110551) 2025-09-04 11:52:00 -03:00
Ivana Huckova f62785d272
Data source config: Add extension point for components (#110588)
* Data source config: Add extension point for components

* Fix lint

* Fix and add tests

* Refactor allowed plugins

* Fix lint
2025-09-04 14:30:17 +00:00
Mihai Turdean f1dffca140
IAM Folder Reconciler: Make operator available as a target when running the grafana binary. (#110567) 2025-09-04 08:22:17 -06:00
Tom Ratcliffe 2760be6892
Folders: Refresh children at root level when creating new folder (#110591) 2025-09-04 15:19:06 +01:00
Roberto Jiménez Sánchez 57ea65dc42
Provisioning: Decrypt using Secrets Service in Operators (#110589)
* Use real secrets servicer decrypter

* Add also server name just in case
2025-09-04 16:18:14 +02:00
Alexander Akhmetov 000ada4cd1
Alerting: Fix alert enrichment API plural schema name (#110593) 2025-09-04 16:18:03 +02:00
Ashley Harrison 33722ac1b1
Chore: remove betterer command from lefthook (#110600)
remove betterer command from lefthook
2025-09-04 15:16:21 +01:00
Bruno 6b5cacfade
use standard sql in secure_value_lease_inactive.sql (#110532)
* use standard sql in secure_value_lease_inactive.sql

* ci
2025-09-04 10:01:05 -03:00
Victor Marin 27b3137baf
Dashboards: User journey E2Es (#109049)
* wip

* wip

* wip

* wip

* scope e2es

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* add dashboard view tests

* mods cujs

* wip refactor

* remove timeouts

* fixes

* betterer

* fixes

* refactor

* refactor

* fix

* use type instead of any

* betterer

* PR mods + codeowners

* CODEOWNERS

* readme lint
2025-09-04 15:17:54 +03:00