Skip to content

Commit

Permalink
fix: migration for ingestion dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
nityanandagohain committed Dec 10, 2024
1 parent 02d8fdb commit 708b3c5
Show file tree
Hide file tree
Showing 3 changed files with 2,754 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/query-service/app/dashboards/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ func GetDashboard(ctx context.Context, uuid string) (*Dashboard, *model.ApiError
return nil, &model.ApiError{Typ: model.ErrorNotFound, Err: fmt.Errorf("no dashboard found with uuid: %s", uuid)}
}

if dashboard.Data["title"] == "Ingestion" && dashboard.Data["description"] != nil {
dashboard.Data["description"] = "This dashboard is deprecated. Please use the new dashboard which is Ingestion V2. Or add it from here https://github.com/SigNoz/dashboards/blob/main/signoz-ingestion-analysis/signoz-ingestion-analysis-v1.json. " + dashboard.Data["description"].(string)
}

return &dashboard, nil
}

Expand Down
Loading

0 comments on commit 708b3c5

Please sign in to comment.