Skip to content

Conversation

@codyjmoody
Copy link
Collaborator

No description provided.

@codyjmoody codyjmoody force-pushed the override-cdc-event-field branch 2 times, most recently from 2a24ed8 to 051a0b0 Compare September 22, 2023 15:46
? uow
: ({
...uow,
event: {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would think we just need to override this field with [rule.eventField || 'event']

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in my mind the purpose of overriding the event field would be to avoid spreading the uow.event in the toEvent function like in job. I think the commit I just added has this simplification but still allows avoiding spreading uow.event

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revisiting this after an update - the purpose of this MR is to be able to override the cdc event field so that the toEvent can short circuit and not publish. currently, if you return null or undefined in toEvent, cdc will still publish. we can't add a field like shortCircuit: true to the rule because it won't be backwards compatible

@codyjmoody codyjmoody force-pushed the override-cdc-event-field branch 2 times, most recently from 83a862b to c48c6c4 Compare January 25, 2025 17:46
@codyjmoody codyjmoody force-pushed the override-cdc-event-field branch from c48c6c4 to aa5a6b8 Compare January 25, 2025 18:13
@jgilbert01 jgilbert01 merged commit ed62a11 into master Jan 27, 2025
2 checks passed
@jgilbert01 jgilbert01 deleted the override-cdc-event-field branch January 27, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants