-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add-eb-global-support #400
base: master
Are you sure you want to change the base?
Conversation
src/sinks/eventbridge.js
Outdated
|
||
return { | ||
...batchUow, | ||
[publishRequestField]: endpointId ? /* istanbul ignore next */ { |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
@@ -47,6 +48,9 @@ export const publishToEventBridge = ({ // eslint-disable-line import/prefer-defa | |||
Entries: batchUow.batch | |||
.filter((uow) => uow[publishRequestEntryField]) | |||
.map((uow) => uow[publishRequestEntryField]), | |||
...(endpointId && { | |||
EndpointId: endpointId, | |||
}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- jumping thru a hoop here with this condition to keep unit tests backwards compatible
- otherwise it will be necessary to assert
EndpointId: undefined
in many tests
If we're in the middle of a failover and the publishing is failing, is that considered a retryable error? So in theory it would bypass faulting and retry until the failover is complete and we can continue publishing to the global EB? |
|
No description provided.