From 1f38b9b65073fa672e28b3236421528db5e47467 Mon Sep 17 00:00:00 2001 From: Alex Tideman Date: Fri, 6 Dec 2024 14:58:45 -0600 Subject: [PATCH] Include WorkflowUpdateAdmitted in Event Type filter (#2467) * Include WorkflowUpdateAdmitted in filter * Update test with new event * Add to update const --- src/lib/models/event-history/get-event-categorization.test.ts | 2 ++ src/lib/models/event-history/get-event-categorization.ts | 1 + src/lib/utilities/is-event-type.ts | 1 + 3 files changed, 4 insertions(+) diff --git a/src/lib/models/event-history/get-event-categorization.test.ts b/src/lib/models/event-history/get-event-categorization.test.ts index 586b7ab91..daa80f38c 100644 --- a/src/lib/models/event-history/get-event-categorization.test.ts +++ b/src/lib/models/event-history/get-event-categorization.test.ts @@ -64,6 +64,7 @@ describe('Event Category Data Structures', () => { "WorkflowExecutionTerminated": "workflow", "WorkflowExecutionTimedOut": "workflow", "WorkflowExecutionUpdateAccepted": "update", + "WorkflowExecutionUpdateAdmitted": "update", "WorkflowExecutionUpdateCompleted": "update", "WorkflowExecutionUpdateRejected": "update", "WorkflowExecutionUpdateRequested": "update", @@ -232,6 +233,7 @@ const categories: Record< update: [ 'WorkflowExecutionUpdateAccepted', + 'WorkflowExecutionUpdateAdmitted', 'WorkflowExecutionUpdateCompleted', ], diff --git a/src/lib/models/event-history/get-event-categorization.ts b/src/lib/models/event-history/get-event-categorization.ts index be377205b..65b00f5b0 100644 --- a/src/lib/models/event-history/get-event-categorization.ts +++ b/src/lib/models/event-history/get-event-categorization.ts @@ -70,6 +70,7 @@ export const eventTypeCategorizations: Readonly< WorkflowExecutionUpdateCompleted: CATEGORIES.UPDATE, WorkflowExecutionUpdateRequested: CATEGORIES.UPDATE, WorkflowExecutionUpdateRejected: CATEGORIES.UPDATE, + WorkflowExecutionUpdateAdmitted: CATEGORIES.UPDATE, NexusOperationScheduled: CATEGORIES.NEXUS, NexusOperationStarted: CATEGORIES.NEXUS, diff --git a/src/lib/utilities/is-event-type.ts b/src/lib/utilities/is-event-type.ts index fa9e6ffa1..ffec35995 100644 --- a/src/lib/utilities/is-event-type.ts +++ b/src/lib/utilities/is-event-type.ts @@ -134,6 +134,7 @@ export const eventTypes = [ 'RequestCancelExternalWorkflowExecutionInitiated', 'UpsertWorkflowSearchAttributes', 'WorkflowExecutionUpdateAccepted', + 'WorkflowExecutionUpdateAdmitted', 'WorkflowExecutionUpdateCompleted', 'WorkflowExecutionUpdateRejected', 'WorkflowExecutionUpdateRequested',