Stephanie Hingtgen
4918d8720c
Dashboard Restore: Remove experimental functionality under feature flag `dashboardRestore` for now - this will be reworked ( #103204 )
2025-04-03 02:52:54 -05:00
Stephanie Hingtgen
4cb756c5d1
K8s: Fix error conversion for provisioned dashboards ( #103074 )
2025-03-31 14:34:54 +01:00
Ieva
ff6039567b
RBAC: Return 404 instead of 403 if a dashboard cannot be found ( #102815 )
...
return 404 instead of 403 if a dashboard cannot be found
2025-03-26 12:26:14 +00:00
Stephanie Hingtgen
7c2890384a
K8s: Dashboards: Set v1alpha1 as priority ( #102729 )
2025-03-25 10:32:49 -06:00
Stephanie Hingtgen
c76a681a43
Dashboards: Prevent version restore to same data ( #102665 )
2025-03-24 10:48:46 -05: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
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
Stephanie Hingtgen
bd0c645ff0
K8s: Schema v2: Return 406 in /api ( #101842 )
2025-03-07 18:20:02 -06:00
Ryan McKinley
c1b48cc488
Dashboards: Add apiVersion to dashboard table ( #100845 )
2025-03-04 07:47:45 +03:00
Stephanie Hingtgen
3e6f40c873
K8s: Move to one feature toggle for folders and dashboards ( #100911 )
2025-02-19 01:11:26 +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
Stephanie Hingtgen
0cef2b9ae7
Dashboard Versions: Make compatible with app platform ( #99327 )
2025-01-28 08:17:52 -06:00
Ezequiel Victorero
3a94057ec8
PublicDashboards: Delete on folder deletion ( #99040 )
2025-01-23 17:23:59 -03:00
Ryan McKinley
680e6bc1f8
Authlib: Use types package rather than claims ( #99243 )
2025-01-21 12:06:55 +03:00
Stephanie Hingtgen
2a08c9ed82
K8s Dashboards: Fix creating a dashboard inside a folder ( #98982 )
2025-01-15 07:15:58 +02:00
Karl Persson
bdb4725768
UserDisplay: Handle both service accounts and user names when resolving "createdBy" ( #98719 )
...
* Handle both user and service accounts when resolving identity name for dashboards and folders
Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
2025-01-10 10:06:59 +01:00
Stephanie Hingtgen
3797779989
K8s: Dashbaords: Ensure backwards compatibility ( #98565 )
2025-01-07 01:35:02 +02:00
Stephanie Hingtgen
b3985a4d37
k8s: Dashboards: allow querying of unistore ( #97995 )
2024-12-17 10:35:46 -06:00
Juan Cabanas
b8e92aacd2
PublicDashboards: Remove publicDashboards FF ( #96578 )
2024-11-20 11:36:19 -03:00
Jeff Levin
372d0acec8
Instrument tracing across dashboards ( #91937 )
...
Add tracing across dashboards and accesscontrol
2024-08-29 22:26:15 -08:00
Laura Benz
1f35bc8346
RestoreDashboards: Make confirmation text consistent ( #92388 )
...
* refactor: change wording
* refactor: change API
* refactor: clean up
2024-08-27 13:13:48 +03:00
Karl Persson
8bcd9c2594
Identity: Remove typed id ( #91801 )
...
* Refactor identity struct to store type in separate field
* Update ResolveIdentity to take string representation of typedID
* Add IsIdentityType to requester interface
* Use IsIdentityType from interface
* Remove usage of TypedID
* Remote typedID struct
* fix GetInternalID
2024-08-13 10:18:28 +02:00
Ryan McKinley
21d4a4f49e
Auth: use IdentityType from authlib ( #91763 )
2024-08-12 09:26:53 +03:00
Karl Persson
bcfb66b416
Identity: remove GetTypedID ( #91745 )
2024-08-09 18:20:24 +03:00
Jeff Levin
d4916207a0
chore(tracing): add tracing for frontend and db session ( #91509 )
...
This PR adds instrumentation for loading frontend SPA along with select methods in the dashboard service, and cleans up span handling in sqlstore.
---------
Co-authored-by: Dave Henderson <dave.henderson@grafana.com>
2024-08-05 17:17:39 -08:00
Ryan McKinley
9db3bc926e
Identity: Rename "namespace" to "type" in the requester interface ( #90567 )
2024-07-25 12:52:14 +03:00
Jeff Levin
ed13959e33
Optimize memory allocations in permissions cache ( #89645 )
...
This PR reduces the number of allocations made while caching permissions from the database, fixes the hierarchy of spans and adds new spans for tracing.
---------
Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
Co-authored-by: Dave Henderson <dave.henderson@grafana.com>
2024-06-26 23:03:13 +03:00
Ryan McKinley
99d8025829
Chore: Move identity and errutil to apimachinery module ( #89116 )
2024-06-13 07:11:35 +03:00
Ezequiel Victorero
42d75ac737
Dashboards: Add feature restore dashboards backend ( #83131 )
...
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2024-05-16 14:36:26 -03:00
Dan Cech
41bee274fd
Chore: Fix error handling in postDashboard, remove UserDisplayDTO, fix live redis client initialization ( #87206 )
...
* clean up error handling in postDashboard and remove UserDisplayDTO
* replace GetUserUID with GetUID and GetNamespacedUID, enforce namespace constant type
* lint fix
* lint fix
* more lint fixes
2024-05-06 14:17:34 -04:00
Gilles De Mey
8765c48389
Alerting: Remove legacy alerting ( #83671 )
...
Removes legacy alerting, so long and thanks for all the fish! 🐟
---------
Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com>
Co-authored-by: Sonia Aguilar <soniaAguilarPeiron@users.noreply.github.com>
Co-authored-by: Armand Grillet <armandgrillet@users.noreply.github.com>
Co-authored-by: William Wernert <rwwiv@users.noreply.github.com>
Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2024-03-14 15:36:35 +01:00
Agnès Toulet
8d68159b52
Public Dashboards: Disable email-sharing when there is no license ( #80887 )
...
* PublicDashboards: Disable email-shared dashboards when feature is disabled
* fix pubdash creation when it was email-shared
* add feature name const in OSS
* update doc
* Update service.go
* fix test & linter
* fix test
* Update query_test.go
* update tests
* fix imports
* fix doc linter issues
* Update docs/sources/administration/enterprise-licensing/_index.md
* fix after merge
2024-02-22 09:34:14 +01:00
Tania
14a36b4040
Folders: Forbid performing operations on folders via dashboards HTTP API ( #81264 )
...
* Forbid creating folders via dashboard api
* Update delete endpoint
* Update docs
2024-02-04 01:16:19 +01:00
Sofia Papagiannaki
cf6ebb0548
Swagger: Remove redundant annotation ( #81780 )
2024-02-02 15:11:23 +02:00
idafurjes
6b4eaa0d18
Add MFolderIDsAPICount metric to count FolderIDs in api package ( #80866 )
...
* Add MFolderIDsAPICount metric to cound FolderIDs in api package
* Change counter to counter vector with method names as string values
2024-01-24 12:39:11 +01:00
Ryan McKinley
2c09f969f1
K8s: Add dashboard service (requires dev mode) ( #78565 )
2024-01-11 01:20:30 +02:00
Agnès Toulet
fdaf6e3f2e
PublicDashboards: Add setting to disable the feature ( #78894 )
...
* Replace feature toggle with configuration setting
* Fix permission alert
* Update documentation
* Add back feature toggle
* revert unwanted commited changes
* fix tests
* run prettier
* Update SharePublicDashboard.test.tsx
* fix linter and frontend tests
* Update api.go
* Apply docs edit from code review
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
* Update index.md
* Update docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* add isPublicDashboardsEnabled + test
* fix test
* update ff description in registry
* move isPublicDashboardsEnabled
* revert getConfig() update
---------
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2023-12-19 11:43:54 +01:00
Todd Treece
529271d7a8
Perf: Disable core kind registry ( #78568 )
...
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-11-28 09:09:54 +01:00
Ieva
778841cabe
Annotations: Remove dashboard permission checks for annotations ( #78352 )
...
remove checks for access to dashboard if FlagAnnotationPermissionUpdate is enabled
2023-11-23 10:47:37 +00:00
Ieva
b0448b92e5
Dashboards: Allow updating a dashboard if the user doesn't have access to the parent folder ( #78075 )
...
* change where folder checks are done for dash creation/updates
* add test for folder not being found
* test fixes
* more test fixes
* add nlint directive to where folder IDs are used
* fix bad merge
* fix test
2023-11-16 11:11:35 +00:00
Kat Yang
3a2e96b0db
Chore: Deprecate FolderID from Dashboard ( #77823 )
...
* Chore: Deprecate FolderID from Dashboard
* chore: add two missing nolint comments
2023-11-15 10:28:50 -05:00
Ryan McKinley
f69fd3726b
FeatureToggles: Add context and and an explicit global check ( #78081 )
2023-11-14 12:50:27 -08:00
Kat Yang
6ed09de47d
Chore: Deprecate FolderId in DashboardMeta ( #77626 )
...
* Chore: Deprecate FolderId in DashboardMeta
* chore: regen specs
2023-11-06 11:31:44 -05:00
Ryan McKinley
45d59cf31b
Dashboards: Remove dummy trim dashboard api ( #77249 )
...
Co-authored-by: nikimanoledaki <niki.manoledaki@grafana.com>
2023-11-02 08:35:14 -07:00
Sofia Papagiannaki
dfc33a70b7
Dashboards: Fix creating dashboard under folder using deprecated API ( #77501 )
...
* Dashboards: Add integration tests for creating a dashboard
* Fix creating dashboard under folder using deprecated API
* Update swagger response
* Fix comments
2023-11-01 17:01:54 +02:00
Sofia Papagiannaki
03a626f1d6
Search: Fix empty folder details for nested folder items ( #76504 )
...
* Introduce dashboard.folder_uid column
* Add data migration
* Search: Fix empty folder details for nested folders
* Set `dashboard.folder_uid` and update tests
* Add unique index
* lint
Ignore cyclomatic complexity of func
`(*DashboardServiceImpl).BuildSaveDashboardCommand
* Fix search by folder UID
2023-10-24 10:04:45 +03:00
Joan López de la Franca Beltran
584381e838
Swagger: Type postDashboardResponse.id as int instead of string ( #76749 )
...
* Swagger: Type postDashboardResponse.id as int instead of string
* Swagger: Type postDashboardResponse.id as int64
2023-10-19 09:16:53 +02:00
Kristin Laemmert
6ce4af7840
chore: remove unused feature flag ( #74460 )
...
This commit removes the validateDashboardsOnSave feature flag that is currently not in use.
Closes #70022
2023-09-06 11:25:44 -04:00
linoman
0e8f19ca6a
Auth: Reduce restriction with non-user accounts ( #74397 )
...
* Reduce restrictions with non-user accounts
* Revert restrictions on anonymous accounts
* Change log level from warning to debug
* Change log messages to upper case
2023-09-06 13:37:54 +02:00