grafana/pkg/services/dashboardsnapshots
Lucy Chen e8625ecd4a
Snapshots: Prevent creation of snapshot of nonexistent dashboard (#86806)
* Add validation to check for existence of dashboard before creation

* add service mock for FindDashboard

* update tests

* reorder function

* update logic change to bool

* update naming validate dashboard

* add tests

* update return val

* remove bool return val

* simplify return statement

* update test

* remove extra spacing

* update mock

* remove unncessary space
2024-05-23 15:17:55 -04:00
..
database Chore: Fix error handling in postDashboard, remove UserDisplayDTO, fix live redis client initialization (#87206) 2024-05-06 14:17:34 -04:00
service Snapshots: Prevent creation of snapshot of nonexistent dashboard (#86806) 2024-05-23 15:17:55 -04:00
errors.go Chore: Add errutils helpers (#73577) 2023-08-22 12:52:24 +02:00
models.go K8s/Snapshots: Add dashboardsnapshot api group (#77667) 2024-02-01 22:40:11 -08:00
service_mock.go Snapshots: Prevent creation of snapshot of nonexistent dashboard (#86806) 2024-05-23 15:17:55 -04:00
service.go Snapshots: Prevent creation of snapshot of nonexistent dashboard (#86806) 2024-05-23 15:17:55 -04:00
store.go Chore: Remove Result field from dashboard snapshot mode (#62089) 2023-01-25 15:09:44 +01:00