From 5981308c9d11e1bab036707d9344ae4fedd14de8 Mon Sep 17 00:00:00 2001 From: Dylan Ratcliffe Date: Thu, 11 Jul 2024 12:37:32 +0000 Subject: [PATCH] Re-implement fake test --- cmd/tea_submitplan.go | 48 +++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/cmd/tea_submitplan.go b/cmd/tea_submitplan.go index 1660275c..1dbda4d1 100644 --- a/cmd/tea_submitplan.go +++ b/cmd/tea_submitplan.go @@ -452,9 +452,9 @@ func (m submitPlanModel) submitPlanCmd() tea.Msg { close(m.processing) return nil } - // high := uuid.New() - // medium := uuid.New() - // low := uuid.New() + high := uuid.New() + medium := uuid.New() + low := uuid.New() m.processing <- submitPlanUpdateMsg{changeUpdatedMsg{ url: "https://example.com/changes/abc", riskMilestones: []*sdp.RiskCalculationStatus_ProgressMilestone{ @@ -472,27 +472,27 @@ func (m submitPlanModel) submitPlanCmd() tea.Msg { }, }, risks: []*sdp.Risk{ - // { - // UUID: high[:], - // Title: "fake high risk titled risk", - // Severity: sdp.Risk_SEVERITY_HIGH, - // Description: TEST_RISK, - // RelatedItems: []*sdp.Reference{}, - // }, - // { - // UUID: medium[:], - // Title: "fake medium risk titled risk", - // Severity: sdp.Risk_SEVERITY_MEDIUM, - // Description: TEST_RISK, - // RelatedItems: []*sdp.Reference{}, - // }, - // { - // UUID: low[:], - // Title: "fake low risk titled risk", - // Severity: sdp.Risk_SEVERITY_LOW, - // Description: TEST_RISK, - // RelatedItems: []*sdp.Reference{}, - // }, + { + UUID: high[:], + Title: "fake high risk titled risk", + Severity: sdp.Risk_SEVERITY_HIGH, + Description: TEST_RISK, + RelatedItems: []*sdp.Reference{}, + }, + { + UUID: medium[:], + Title: "fake medium risk titled risk", + Severity: sdp.Risk_SEVERITY_MEDIUM, + Description: TEST_RISK, + RelatedItems: []*sdp.Reference{}, + }, + { + UUID: low[:], + Title: "fake low risk titled risk", + Severity: sdp.Risk_SEVERITY_LOW, + Description: TEST_RISK, + RelatedItems: []*sdp.Reference{}, + }, }, }} time.Sleep(time.Second)