-
Notifications
You must be signed in to change notification settings - Fork 0
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
In subtransaction_payment jbuilder, get created
from the paymentable, not subtransaction_payment
#672
In subtransaction_payment jbuilder, get created
from the paymentable, not subtransaction_payment
#672
Conversation
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.
Hmmm, this does fix the problem in a sense but it's not quite the right layer.
We'll need to be able to search and sort SubtransactionPayments by their created
value. That means, for this PR, SubtransactionPayment#created
to be set or updated when the legacy_payment.date
is set or changed.
@wwahammy How does this sound as an approach: Adding a method on |
So something like this (in payments_controller.rb)
Also: is there a way to only update |
Unfortunately, there are ways in which payments can be updated and created that are not through an http request. For example, a recurring donation could run and a payment would be created for that but no http request would have occurred. This will have to happen in InsertDonation, UpdateDonation, UpdateTickets, etc. |
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.
Looks good. Is it possible to unit test the changes in InsertTickets too?
Yes, forgot about that lol 😂 I"m on it |
5e33e40
to
11af9db
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.
One quick tweak I think
Co-authored-by: Eric Schultz <eric@commitchange.com>
NOTE: DO NOT discuss internal CommitChange information in your PR; this PR will be public.
Link back to the issue in the Tix repo when you need to do that.
Closes https://github.com/CommitChange/tix/issues/4040