-
Notifications
You must be signed in to change notification settings - Fork 2
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
Track modified donations via transactions #62
Conversation
c9122a5
to
2f5dc47
Compare
9e94ee2
to
ccb8fd7
Compare
ccb8fd7
to
61709b5
Compare
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.
Hey, this is a much smaller change than I expected! Thanks heaps for adding those donation tests.
I am a little surprised that no changes except removing that one line from Donation.import
was needed - will that actually pick up all the related things fine? Like ensure that refunds in Id are correctly related?
61709b5
to
fd55c5e
Compare
fd55c5e
to
2966a19
Compare
Hey @michael-gratton, thanks heaps for the feedback. I've taken them onboard, but went slightly differently re:
Yes, it's simple as that. The previous implementation didn't record the refunds, it just marked the corresponding |
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 I'm pretty happy with this. Let's get this merged once the current batch of Id changes gets promoted to prod.
2966a19
to
a9666cb
Compare
Summary
This PR changes the approach to tracking modified donations to ensure consistency and accuracy. Instead of relying on the donation's
updated_at
, we now track donation modifications via transactions updates.Key Changes
updated_at
approach.refunded_at
timestamp to keep record of the refund status.fetch_donation_updates
to validate the donations sync behaviour.For more info see the Asana issue.