Currently deleting the test data at Donations > Tools > Data (tab) deletes donations made when give is in test mode, but not donations made with the test gateway in live mode.
Test donations of all types should be deleted.
Only donations that are made in test mode are deleted.
Add a check for test gateway during the deletion process.
Related to this, it would be nice to "wipe the slate clean" of _only donation data_ and NOT delete the forms. For when (for example) you want to delete all data but leave forms.
Delete Test Donations is selected, it deletes all donations where _give_payment_mode === test (where test indicates any donation made while in Test Mode)Delete Test Donations is selected, it also deletes all donations where _give_payment_gateway === manual (where manual indicates a donation through the Test Donation gateway).Deletes all donations made in Test Mode and all donations made through the Test Donation gateway in Live Mode.Delete Test Donors and Donations is selected.@kevinwhoffman Actually, I am confused with this issue behavior. Because if a user selects Delete Test Donations from Donations > Tools > Data (tab) then it should delete the all the test donations NOT all(live + test) types of donations. It is intended behavior.
Please let me know your thoughts on this.
Here's my understanding of what @Benunc is asking to delete when Delete Test Donations is selected:
_give_payment_mode = test._give_payment_gateway = manual.Acceptance criteria have been updated accordingly.
@kakshak There are 2 queries that need modified. Add a meta query with 'relation' => 'OR' to look for either of the two meta keys as described above.
This query runs whenever Delete Test Donations is selected:
https://github.com/impress-org/give/blob/f3cb229d3d020e00c06e47208b4919790249072f/includes/admin/tools/data/class-give-tools-delete-test-transactions.php#L187-L192
This query runs whenever Delete Test Donors and Donations is selected:
https://github.com/impress-org/give/blob/f3cb229d3d020e00c06e47208b4919790249072f/includes/admin/tools/data/class-give-tools-delete-test-donors.php#L167-L175
Most helpful comment
Here's my understanding of what @Benunc is asking to delete when
Delete Test Donationsis selected:_give_payment_mode=test._give_payment_gateway=manual.Acceptance criteria have been updated accordingly.