From 65b6932e3b978ab8e24412d91333634942e6d882 Mon Sep 17 00:00:00 2001 From: Elijah Aremu <45821029+elielijah321@users.noreply.github.com> Date: Tue, 20 Feb 2024 15:55:57 +0000 Subject: [PATCH 1/2] bug fix for withdrawn decision --- .../Models/AdvisoryBoardDecision/AdvisoryBoardDecision.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.Data/Models/AdvisoryBoardDecision/AdvisoryBoardDecision.cs b/Dfe.PrepareConversions/Dfe.PrepareConversions.Data/Models/AdvisoryBoardDecision/AdvisoryBoardDecision.cs index 99c887ae8..07faaaa51 100644 --- a/Dfe.PrepareConversions/Dfe.PrepareConversions.Data/Models/AdvisoryBoardDecision/AdvisoryBoardDecision.cs +++ b/Dfe.PrepareConversions/Dfe.PrepareConversions.Data/Models/AdvisoryBoardDecision/AdvisoryBoardDecision.cs @@ -11,6 +11,7 @@ public AdvisoryBoardDecision() { DeferredReasons = new List(); DeclinedReasons = new List(); + WithdrawnReasons = new List(); } public int AdvisoryBoardDecisionId { get; set; } From c03cf7dd8504d9fe00acc48f8a1274763e659e37 Mon Sep 17 00:00:00 2001 From: Elijah Aremu <45821029+elielijah321@users.noreply.github.com> Date: Tue, 20 Feb 2024 16:29:00 +0000 Subject: [PATCH 2/2] make project status colours consistent --- .../Dfe.PrepareConversions/Utils/ProjectListHelper.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions/Utils/ProjectListHelper.cs b/Dfe.PrepareConversions/Dfe.PrepareConversions/Utils/ProjectListHelper.cs index b826e2a2a..876bb26d9 100644 --- a/Dfe.PrepareConversions/Dfe.PrepareConversions/Utils/ProjectListHelper.cs +++ b/Dfe.PrepareConversions/Dfe.PrepareConversions/Utils/ProjectListHelper.cs @@ -65,6 +65,7 @@ public static ProjectStatus MapProjectStatus(string status) const string yellow = nameof(yellow); const string orange = nameof(orange); const string red = nameof(red); + const string purple = nameof(purple); if (Enum.TryParse(status, out AdvisoryBoardDecisions result)) { @@ -73,6 +74,7 @@ public static ProjectStatus MapProjectStatus(string status) AdvisoryBoardDecisions.Approved => new ProjectStatus(result.ToString().ToUpper(), green), AdvisoryBoardDecisions.Deferred => new ProjectStatus(result.ToString().ToUpper(), orange), AdvisoryBoardDecisions.Declined => new ProjectStatus(result.ToString().ToUpper(), red), + AdvisoryBoardDecisions.Withdrawn => new ProjectStatus(result.ToString().ToUpper(), purple), _ => new ProjectStatus(result.ToString().ToUpper(), yellow) }; }