Stephanie Hingtgen
1e4555c79b
K8s: Folders: fix error conversion ( #102737 )
2025-03-24 19:59:26 +02:00
Stephanie Hingtgen
c76a681a43
Dashboards: Prevent version restore to same data ( #102665 )
2025-03-24 10:48:46 -05:00
Karl Persson
55f2812466
Annotations: Fix annotations scope resolver ( #102612 )
...
* Fix annotations scope resolver
2025-03-24 16:00:07 +01:00
Marco de Abreu
543c0bbccb
App platform: Add cleanup job for dashboards when going through /apis (kubectl) ( #102506 )
...
* Add dashboard cleanup job
Change log message
Adjust logic to account for new head RV logic
Don't update lastResourceVersion due to pagination
Save improvements
* Address review feedback
* Update docs.
* Remove docs
* Rename config
---------
Co-authored-by: Marco de Abreu <18629099+marcoabreu@users.noreply.github.com >
2025-03-22 23:47:27 +01:00
Ryan McKinley
1a00801e6a
Provisioning: Merge watch support into live ( #102618 )
2025-03-21 16:45:25 +02:00
Ieva
73436e3d55
RBAC: Remove dashboard guardians pt 3 ( #102558 )
...
* remove usage of New dashboard guardian
* fix tests
2025-03-21 10:44:16 +00:00
Ieva
e2737f195b
RBAC: Remove dashboard guardians pt 2 ( #102556 )
...
* remove NewByDashboard guardian
* remove unused authorizer
* more cleanup
* simplify canAdmin evaluation
2025-03-21 10:32:27 +00:00
Ieva
163546d40f
RBAC: Remove dashboard guardians pt 1 ( #102314 )
...
* replace the usage of dashboard guardians with calling AC evaluators or checking access in middleware
* linting fixes
* fix test
* more test fixes
* remove a todo comment
2025-03-20 17:38:09 +00:00
Ben Sully
8cdbc51b04
feat: expose Live message size limit to frontend ( #100169 )
...
Developers using Grafana Live need to know whether a message is too
big to be sent over the Grafana Live websocket. Since this limit
is configurable, it is useful to expose it to the frontend.
This commit adds a new field to the frontend settings,
`liveMessageSizeLimit`, which the frontend can use to access the
limit configured in the backend.
Relates to #99770 .
2025-03-20 18:26:09 +02:00
Will Browne
5b67ae1876
Plugins: Remove support for secrets manager plugins ( #101467 )
...
* remove secrets manager code
* remove unused struct
* add test toggles back
* rollback golden file changes
* add missing TestMain
* update betterer
2025-03-20 10:00:59 +00:00
Peter Štibraný
0c58d39e76
Spanner-related fixes ( #102376 )
...
* Fix UNION syntax in resourcepermissions package.
* Fix migrations in usermig package to work with Spanner.
* Fix health query.
* Use more connections for integration tests.
* Add test-go-integration-spanner target to run integration tests against Spanner emulator.
* Add test for enterprise.
* Don't delete sequence number for migration_log.id column.
* Only bump max open connections to 20 for Spanner.
Lower integration test timeout.
2025-03-19 12:34:44 +01:00
Matheus Macabu
20f9902ed5
CloudMigrations: Remove public preview banner ( #102354 )
2025-03-18 16:21:16 +01:00
Ryan McKinley
ff6a97f1a1
Provisioning: Update APIs in main ( #102345 )
2025-03-18 14:55:22 +02:00
Eric Leijonmarck
56c896fa72
Revert "Config: Removes setting viewers_can_edit ( #101767 )" ( #102191 )
...
This reverts commit d3a9c04562 .
2025-03-14 13:39:59 +00:00
Eric Leijonmarck
d3a9c04562
Config: Removes setting viewers_can_edit ( #101767 )
...
Reapply "Authz: Removes setting `viewers_can_edit`" (#101528 )
This reverts commit 5f6b00a72f .
2025-03-14 08:38:48 +00:00
Ieva
9264431c81
RBAC: Remove action set feature toggle ( #101959 )
...
* remove action set feature toggle
* don't pass feature toggles to action set service instantiation
* linting
* test fixes and frontend clean-up
* fix test
2025-03-13 15:18:23 +00:00
Igor Suleymanov
5d2ba10113
K8s/Dashboards: Extract Dashboard APIs to an app submodule ( #102029 )
...
* Move dashboard k8s APIs to a separate app
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
* Copy dashboard code in Dockerfile
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
* Fix conversion generation
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
* Update OpenAPI snapshot for dashboard/v0alpha1
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
---------
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
2025-03-13 11:05:01 +02:00
Eric Leijonmarck
94020aa9cd
Config: Remove setting editors_can_admin ( #101607 )
...
* Remove editors can admin
* delete file
* add ac_test back
* Add linting ignore
* more static ignore
2025-03-12 16:25:23 +00:00
maicon
927f7befd6
Unistore: Create default permissions through Folder APIServer ( #101420 )
...
* Unistore: Declare a new storage to set default folder permissions
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
* Remove the setting of default permissions from folder legacy storage
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
* Disable setting of folder permissions when Api Server is enabled
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
* Reverts grafana/grafana#100019
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
* Add unit test
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
* check error on unit test
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
* Add unit test
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
* Remove unused fields
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
* Add unit tests for folder_storage
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
* Remove duplicated import
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
* Fix unit test
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
---------
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
2025-03-11 11:33:08 +00:00
Torkel Ödegaard
b4366db1f1
ThemeDrawer: Change theme from anywhere and preview them ( #100405 )
...
* ThemeDrawer: Change theme from anywhere and preview them
* Update
* added subtitle
* Use new component
* Fixes
* Fix runtime ony wrong prop
* Fixed saving issue
* update lang file
* Fixed circular dep
* fix import
2025-03-11 12:03:10 +01:00
Stephanie Hingtgen
bd0c645ff0
K8s: Schema v2: Return 406 in /api ( #101842 )
2025-03-07 18:20:02 -06:00
Ieva
392124de00
Service Accounts: Don't show error pop-ups for Service Account and Renderer UI flows ( #101776 )
...
* don't show error pop-ups for SAs and renderer
* only hide non 4xx error pop'ups
* linting
2025-03-07 13:37:26 +00:00
Ieva
f0d260ba5b
Service Accounts: Don't show error pop-ups for Service Account and Renderer UI flows ( #101679 )
...
don't show error pop-ups for SAs and renderer
2025-03-07 11:38:15 +00:00
Ryan McKinley
dc2defd84f
K8s/Annotations: Use manager/source annotations rather than repo ( #101313 )
...
Co-authored-by: Stephanie Hingtgen <stephanie.hingtgen@grafana.com >
2025-03-05 08:54:20 +02:00
Stephanie Hingtgen
e806a00701
K8s: Dashboards: Add useful error message for too large ( #101590 )
2025-03-04 17:11:42 -06:00
Ryan McKinley
c1b48cc488
Dashboards: Add apiVersion to dashboard table ( #100845 )
2025-03-04 07:47:45 +03:00
Ieva
5f6b00a72f
Revert "Authz: Removes setting viewers_can_edit" ( #101528 )
...
Revert "Authz: Removes setting `viewers_can_edit` (#101265 )"
This reverts commit 4ce41acade .
2025-03-03 20:26:55 +02:00
xavi
ec29f6cb60
Add OpenAPI annotations for query params of getOrgUsersForCurrentOrg API route ( #101419 )
2025-02-28 13:41:58 +01:00
Sven Grossmann
b5faf5d9a1
Drilldown: Require datasources:explore RBAC action ( #101366 )
...
Drilldown: Require `datasources:explore` acton
2025-02-26 17:33:05 +01:00
Eric Leijonmarck
4ce41acade
Authz: Removes setting viewers_can_edit ( #101265 )
...
* Removes setting `viewers_can_edit`
* Update public/app/features/dashboard-scene/scene/NavToolbarActions.tsx
Co-authored-by: Jo <joao.guerreiro@grafana.com >
* formatting
---------
Co-authored-by: Jo <joao.guerreiro@grafana.com >
2025-02-26 13:41:23 +00:00
Eric Leijonmarck
4538c8cad9
DS proxy: Remove ft datasourceProxyDisableRBAC and logic ( #101239 )
...
delete ft datasourceproxy
2025-02-25 17:30:58 +00:00
Gabriel MABILLE
f3433fd472
RBAC: Remove accessControlOnCall feature toggle ( #101222 )
...
* RBAC: Remove accessControlOnCall feature toggle
* Leave the other one in place
* Tests
* frontend
* Readd empty ft to frontend test
* Remove legacy RBAC check
* Fix test
* no need for context
* Remove unused variable
* Remove unecessary param
* remove unecessary param from tests
* More tests :D
2025-02-25 13:44:40 +01:00
Yuri Tseretyan
bbeae46105
Alerting: Fix rule state history with annotations backend ( #101174 )
...
* add alertUID to annotations API query parameter
* update state history UI to fetch rule by UID
---------
Signed-off-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com >
2025-02-21 23:08:40 +02:00
Andre Pereira
e54149e551
Explore: Move drilldown apps from Explore to a new navbar item "Drilldown" ( #100409 )
...
* Move drilldown apps from Explore to a new navbar item "Drilldown"
* Commit make i18n-extract
* Update drilldown icon
* Added alert to explore with call out to drilldown apps
* Add isNew field for nav item which shows a "New!" badge on the navbar and expands it by default
* Fix e2e test
2025-02-20 17:56:55 +00:00
Eric Leijonmarck
32643c933e
LBAC for datasources: GA ( #99511 )
...
* GA: feature toggle removal of `teamHttpHeaders`
* Apply suggestions from code review
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
---------
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
2025-02-20 10:26:46 +00:00
Ivana Huckova
9eda0f44ac
Update ErrRequestErrorBase from [plugin.downstreamError] to [plugin.requestFailureError] ( #100965 )
...
* Update ErrRequestErrorBase to make it more clear for developers
* Trigger build
* requestError -> requestFailureError
* Fix test
* Update pkg/plugins/backendplugin/grpcplugin/client_v2.go
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com >
---------
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com >
2025-02-20 10:23:53 +01:00
Ryan McKinley
5a40c84568
DualWriter: Support managed DualWriter ( #100881 )
2025-02-19 17:50:39 +03:00
Stephanie Hingtgen
3e6f40c873
K8s: Move to one feature toggle for folders and dashboards ( #100911 )
2025-02-19 01:11:26 +02:00
Stephanie Hingtgen
67be9aeed6
K8s: Search fallback: Support all sort by methods ( #100776 )
2025-02-18 12:30:11 -06:00
Ashley Harrison
7a6f4ced06
Themes: Temporary fix for initialising saved grafanacon themes ( #100810 )
...
temporary fix for initialising saved grafanacon themes
2025-02-17 16:39:04 +00:00
Hugo Kiyodi Oshiro
29afe7d2cc
Plugins: Remove managedPluginsInstall feature toggle ( #100416 )
...
* Plugins: Remove managedPluginsInstall feature toggle
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com >
2025-02-17 16:07:41 +01:00
Charandas
ea788975e0
K8s: refactor build handler chain func to allow easier injection from enterprise ( #100777 )
2025-02-15 04:08:00 +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
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
Misi
ee0a1391df
Auth: Add OrgRole to ID token ( #100383 )
...
* Changes for Users and ServiceAccounts
* Align tests
2025-02-12 05:51:29 -08:00
Stephanie Hingtgen
df84d928e2
K8s: Folders: Fix legacy search ( #100393 )
2025-02-11 13:14:25 -06: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
Scott Lepper
378bb6ea3f
[search] folder name lookup performance ( #100154 )
...
[search] use search for folder name lookup
2025-02-07 17:19:23 -05:00
Karl Persson
e05413dcc4
Dashboards+Folders: Ensure the service identity is used for resolvers ( #100128 )
...
* Dashboards+Folders: Ensure the service identity is used for dashboard and folder resolvers
* Add convinient function to call closure with service context
2025-02-06 12:07:52 +01:00
Sven Grossmann
87bb7c3947
Explore: Fix casing for exploreHideLogsDownload setting ( #100081 )
2025-02-04 18:32:08 +01:00