b2f80d4dca
Dashboards: Add Dashboard API Validation tests and fix underlying issues ( #103502 )
2025-04-07 05:44:28 +03:00
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
2f3aff0e04
Dashboards: Prevent title longer than 5 000 characters ( #101554 )
...
Co-authored-by: AgnesToulet <35176601+AgnesToulet@users.noreply.github.com>
2025-03-04 17:02:54 +02:00
2fe510eb6f
Dashboards: set max length of message to 500 ( #99229 )
2025-01-21 08:50:24 -06:00
2f40fd6741
Dashboards: Remove unique name constraints ( #90687 )
2024-10-29 08:58:39 +03:00
5d724c2482
Zanzana: Initial dashboard search ( #93093 )
...
* Zanzana: Search in a background and compare results
* refactor
* Search with check
* instrument zanzana client
* add single_read option
* refactor
* refactor move check into separate function
* Fix tests
* refactor
* refactor getFindDashboardsFn
* add resource type to span attributes
* run ListObjects concurrently
* Use list and search in less cases
* adjust metrics buckets
* refactor: move Check and ListObjects to AccessControl implementation
* Revert "Fix tests"
This reverts commit b0c2f072a25029905fdbd26625fdc7a243d4a308.
* refactor: use own types for Check and ListObjects inside accesscontrol package
* Fix search scenario with low limit and empty query string
* more accurate search with checks
* revert
* fix linter
* Revert "revert"
This reverts commit ee5f14eea8c2f69e0b59f4a5094d708ac58b0169.
* add search errors metric
* fix query performance under some conditions
* simplify check strategy
* fix pagination
* refactor findDashboardsZanzanaList
* Iterate over multiple pages while making check request
* refactor listUserResources
* avoid unnecessary db call
* remove unused zclient
* Add notes for SkipAccessControlFilter
* use more accurate check loop
* always use check for search with provided UIDs
* rename single_read to zanzana_only_evaluation
* refactor
* update go workspace
* fix linter
* don't use deprecated fields
* refactor
* fail if no org specified
* refactor
* initial integration tests
* Fix tests
* fix linter errors
* fix linter
* Fix tests
* review suggestions
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
* fix limit
* refactor
* refactor tests
* fix db config in tests
* fix migrator (postgres)
---------
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2024-10-04 12:27:10 +02:00
2e2ddc5c42
Folders: Allow folder editors and admins to create subfolders without any additional permissions ( #91215 )
...
* separate permissions for root level folder creation and subfolder creation
* fix tests
* fix tests
* fix tests
* frontend fix
* Update pkg/api/accesscontrol.go
Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com>
* fix frontend when action sets are disabled
---------
Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com>
2024-08-01 18:20:38 +03:00
c2e0952553
Folders: Improve folder move permission checks ( #90588 )
...
* check that a user doesn't have higher plugin access on the destination folder than they have on the source folder when moving folders
* Update pkg/services/folder/folderimpl/folder_test.go
---------
Co-authored-by: Jo <joao.guerreiro@grafana.com>
2024-07-23 17:07:27 +01:00
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
478d7d58fa
Nested folders: Allow creating folders with duplicate names in different locations ( #77076 )
...
* Add API test
* Add move tests
* Fix create folder
* Fix move
* Fix test
* Drop and re-create index so that allows a folder to contain a dashboard and a subfolder with same name
* Get folder by title defaults to root folder and optionally fetches folder by provided parent folder
* Apply suggestions from code review
2024-01-25 11:29:56 +02:00
6d4625ad52
Alerting: Fix deleting rules in a folder with matching UID in another organization ( #78258 )
...
* Remove usage of obsolete function for deleting alert rules under folder
* Apply suggestion from code review
* Update tests
2023-12-04 11:34:38 +02:00
2136e680c4
Previews: remove dashboard previews backend ( #66176 )
...
* remove dashboard previews backend
* remove dashboard previews backend
* bring back the migration
* bring back the migration
* bring back the migration
2023-04-13 21:42:24 +04:00
b1e58eb47e
Chore: Replace short UID generation with more standard UUIDs ( #62731 )
2023-02-06 20:44:37 -05:00
5cb9fca990
public-dashboards: Add log statement when public dashboard enabled or disabled ( #54133 )
...
* refactor apis for consistent outputs
* add dashboardUid validation at API layer
* add check for empty dashboardUid on SavePublicDashboard
* remove public dashboard errors from models package.
Co-authored-by: Ezequiel Victorero <evictorero@gmail.com>
2022-08-26 11:28:54 -08:00
9de00c8eb2
chore/backend: move dashboard errors to dashboard service ( #51593 )
...
* chore/backend: move dashboard errors to dashboard service
Dashboard-related models are slowly moving out of the models package and into dashboard services. This commit moves dashboard-related errors; the rest will come in later commits.
There are no logical code changes, this is only a structural (package) move.
* lint lint lint
2022-06-30 09:31:54 -04:00