Skip to content

Commit

Permalink
Include WorkflowUpdateAdmitted in Event Type filter (#2467)
Browse files Browse the repository at this point in the history
* Include WorkflowUpdateAdmitted in filter

* Update test with new event

* Add to update const
  • Loading branch information
Alex-Tideman authored Dec 6, 2024
1 parent 942cad9 commit 1f38b9b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/models/event-history/get-event-categorization.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ describe('Event Category Data Structures', () => {
"WorkflowExecutionTerminated": "workflow",
"WorkflowExecutionTimedOut": "workflow",
"WorkflowExecutionUpdateAccepted": "update",
"WorkflowExecutionUpdateAdmitted": "update",
"WorkflowExecutionUpdateCompleted": "update",
"WorkflowExecutionUpdateRejected": "update",
"WorkflowExecutionUpdateRequested": "update",
Expand Down Expand Up @@ -232,6 +233,7 @@ const categories: Record<

update: [
'WorkflowExecutionUpdateAccepted',
'WorkflowExecutionUpdateAdmitted',
'WorkflowExecutionUpdateCompleted',
],

Expand Down
1 change: 1 addition & 0 deletions src/lib/models/event-history/get-event-categorization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/lib/utilities/is-event-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export const eventTypes = [
'RequestCancelExternalWorkflowExecutionInitiated',
'UpsertWorkflowSearchAttributes',
'WorkflowExecutionUpdateAccepted',
'WorkflowExecutionUpdateAdmitted',
'WorkflowExecutionUpdateCompleted',
'WorkflowExecutionUpdateRejected',
'WorkflowExecutionUpdateRequested',
Expand Down

0 comments on commit 1f38b9b

Please sign in to comment.