fix: remove depricated message from ingestion dashboard (#6862)

This commit is contained in:
Nityananda Gohain 2025-01-21 12:47:21 +05:30 committed by GitHub
parent 4ec1e66c7e
commit c565c2b865
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -288,11 +288,7 @@ func GetDashboard(ctx context.Context, uuid string) (*Dashboard, *model.ApiError
if err != nil {
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 Ingestion V2 dashboard. " + dashboard.Data["description"].(string)
}
return &dashboard, nil
}