-
Notifications
You must be signed in to change notification settings - Fork 87
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
Testing Cascading Deletion of Events #2194
Comments
Has there been consideration for how the orphaned transactions will be deleted? The current functionality when you trash, then permanently delete a registration is it will also delete the transaction too. It seems like the transaction should also be deleted too. Otherwise how will they be deleted without going in and directly running deleted commands on the database? |
Good thing to bring up. You mentioned it, but I must have glossed over the fact there's no UI to delete transactions. Regardless, I thought that was going to be the next part of the cascading deletions epic. Deleting transactions was out-of-scope for this first project. I'm sorry if I didn't communicate that properly. Anyways, currently transactions with no registrations don't actually appear in the transactions list table (it's because of a bug in the transactions list table query, which isn't too hard to fix.) So they eat up some disk space, but many users won't know about them, if that's any consolation at all. I thought during the next cascading deletions project we would want to provide a way to delete transactions, and clean up transactions with no registrations. Here's some rough ideas:
Do you think we should do some of that in this first project first @joshfeck? If so, what would you like? |
Current behavior (in master branch) when trashing registrations is it checks for other registrations in the same transaction, and if all registrations are in the trash, it goes ahead and deletes the related transaction & line items. If there is a registration from the same transaction that's not trashed then it doesn't delete the transaction. This is in the Could the cascade delete do something similar? |
I don't have a problem with extending the project if others don't. Theoretically that will be pretty simple but it will probably be a week or so more for the project. I'm investigating. |
KK I created #2225 and passed to Brent for initial review (I purposefully did a quick-n-dirty change just to verify the logic; I even suggested some moderate code improvements I'd like to do afterwards.) |
|
OK to continue testing on CASC/delete-transactions3 or should I be testing on another branch? Is any merging of branched needed before final testing? |
Please test CASC/delete-transactions3 (I didn't merge it to CASC/base in case there's some unforseen problem with it and we decide to do it another way). If the testing notes from #2248 are OK, then we can merge that into CASC/base, and continue with this ticket's more general testing checklist.) |
I don't really know why I made a ticket for this when there was already a PR for the main branch |
Issue Overview
Although I've been getting some feedback during development, I haven't been putting work on hold for it too much either.
Anyways, with all the pieces in place, this needs to be officially tested.
Testing Checklist
Promotion_Object
model which relates promotions to events; or Infusionsoft which records extra meta about events that are sync'd; or MailChimp which has other tables pointing to events; or payment methods.) It may not be a hard requirement that this always delete those add-ons' data, but it certainly shouldn't have any errors, and it would be great if this PR did clean up their data.The text was updated successfully, but these errors were encountered: