From dd50faab572ad4bc0c8d7bc6b0dba4c44806b910 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Tue, 22 Aug 2023 15:58:20 -0700 Subject: [PATCH] update instructions for dashboard. --- backend/pkg/web/handler/dashboard.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/pkg/web/handler/dashboard.go b/backend/pkg/web/handler/dashboard.go index cca28e4d4..69d424a96 100644 --- a/backend/pkg/web/handler/dashboard.go +++ b/backend/pkg/web/handler/dashboard.go @@ -36,7 +36,9 @@ func GetDashboard(c *gin.Context) { //- download the gist metadata //- if more than 1 file found, look for a dashboard.json //- check if the file sha exists on the file system (content-addressible file system) - //- if it doesnt, + //- if its not present, download it + //- if its not json, throw an error + //- if it doesnt match the dashboard config schema, throw an error. for _, dashboardLocation := range dashboardLocations { if strings.HasPrefix(dashboardLocation, "http") {