From 42f0fc69ecca40885216b40d280b26dc33b35b86 Mon Sep 17 00:00:00 2001
From: Daniel Nemergut <dnemergu@nrao.edu>
Date: Tue, 4 Apr 2023 17:50:46 -0400
Subject: [PATCH] Added remaining execution states for the filter, might be
 more than needed

---
 .../active-capability-requests.component.ts         | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/apps/web/src/app/workspaces/components/active-capability-requests/active-capability-requests.component.ts b/apps/web/src/app/workspaces/components/active-capability-requests/active-capability-requests.component.ts
index 6cc402285..92f8da1e7 100644
--- a/apps/web/src/app/workspaces/components/active-capability-requests/active-capability-requests.component.ts
+++ b/apps/web/src/app/workspaces/components/active-capability-requests/active-capability-requests.component.ts
@@ -80,6 +80,7 @@ export class ActiveCapabilityRequestsComponent implements OnInit, OnDestroy {
   private paramsObj: any;
   private filters: any;
   public showFilterMenu = false;
+  private notSubmittedState = "Latest version has not been submitted";
   private newParams: Params;
   private filterSets = {};
   private availableFilters: any;
@@ -125,10 +126,18 @@ export class ActiveCapabilityRequestsComponent implements OnInit, OnDestroy {
     {"name":"Failed"},
   ]
   public execStatusToFilter = [
+    {"name":"Not submitted", "filter_val":this.notSubmittedState},
+    {"name":"Start", "filter_val":"Start"},
     {"name":"Queued", "filter_val":"Queued"},
     {"name":"Executing", "filter_val":"Executing"},
+    {"name":"Ingesting", "filter_val":"Ingesting"},
+    {"name":"Awaiting QA", "filter_val":"Awaiting QA"},
+    {"name":"Stage 2 Review", "filter_val":"Stage 2 Review"},
+    {"name":"QA Closed", "filter_val":"QA Closed"},
+    {"name":"Failed", "filter_val":"Failed"},
     {"name":"Error", "filter_val":"Error"},
-    {"name":"latest version has not been submitted", "filter_val":"latest version has not been submitted"},
+    {"name":"Cancelled", "filter_val":"Cancelled"},
+    {"name":"Complete", "filter_val":"Complete"},
   ]
   public srdpOptions = [
     {"name":"true"},
@@ -514,7 +523,7 @@ export class ActiveCapabilityRequestsComponent implements OnInit, OnDestroy {
     }
     if (request.state === 'Created' ||
       (request.state === 'Submitted' && request.versions[request.versions.length - 1].state === 'Created')) {
-      statusName = "Latest version has not been submitted";
+      statusName = this.notSubmittedState;
     }
 
     return statusName;
-- 
GitLab