-
Notifications
You must be signed in to change notification settings - Fork 2
feature: avoid duplicate M2M event writes (PIN-7824) #2454
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
base: develop
Are you sure you want to change the base?
feature: avoid duplicate M2M event writes (PIN-7824) #2454
Conversation
…ture/PIN-7824_avoid-duplicate-event-writes
await insertIfVersionNotPresent( | ||
event, | ||
eserviceInM2MEvent, | ||
eq(eserviceInM2MEvent.eserviceId, event.eserviceId) |
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.
should the filter include the resourceVersion
?
If I'm not missing something, this limit may take a different resource version, despite the existence of the current event
await insertIfVersionNotPresent( | ||
event, | ||
agreementInM2MEvent, | ||
eq(agreementInM2MEvent.agreementId, event.agreementId) |
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.
same
await insertIfVersionNotPresent( | ||
event, | ||
attributeInM2MEvent, | ||
eq(attributeInM2MEvent.attributeId, event.attributeId) |
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.
same
Issue
PIN-7824
Impacted Services
m2m-event-dispatcher
Tests
Added automated tests, working ✅