-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(jobs): logs track_deletes results #3493
Conversation
...existingResult, | ||
[model]: { | ||
added: Number(added) + Number(incomingResult?.added), | ||
updated: Number(updated) + Number(incomingResult?.updated) | ||
updated: Number(updated) + Number(incomingResult?.updated), | ||
deleted: deletedValue + incomingDeletedValue |
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.
Not sure why it was done conditionally, maybe it's wrong, let me know
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.
Think this was from legacy as we didn't want to show deletes at all since that wasn't a thing in the initial implementation.
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.
is it also what we send back in the webhook? Can customers have logic not expecting deleted
attributes?
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.
We always send at least deleted: 0
in the webhook by default (see: webhooks/lib/sync.ts:101)
So I don't think it's an issue here
...existingResult, | ||
[model]: { | ||
added: Number(added) + Number(incomingResult?.added), | ||
updated: Number(updated) + Number(incomingResult?.updated) | ||
updated: Number(updated) + Number(incomingResult?.updated), | ||
deleted: deletedValue + incomingDeletedValue |
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.
is it also what we send back in the webhook? Can customers have logic not expecting deleted
attributes?
Changes