Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
feat(admin-tool): Create new "Dry Run" functionality to test importing donation #2419
The Importer Test Mode doesn't work in Give 1.8.16
When "Test mode" is enabled, it should not import the donations, but show only the summary screen.
The donations ARE imported.
Steps to Reproduce (for bugs)
``` ### WordPress Environment ###
Home URL: http://giveimporttest.dev
Hosting Provider: DBH: 127.0.0.1, SRV: giveimporttest.dev
Give Version: 1.8.16
Give Use Sessions: Enabled
Active Give Add-ons
Other Active Plugins
Debug Bar: by wordpressdotorg – 0.9
Name: Twenty Sixteen
Testing Mode and New "Dry Run" Feature
Shift the functionality you developed into a new "Dry Run" feature which allows you to "test" how an import will work to view duplicates and what items will be created before actually importing any data.
Add new "Dry Run" Checkbox
Notice: I also changed the button text and touched up the styles. Please add this as well to the UI.
Change description of "Test Mode" option
Description should be:
Note: This option should be disabled by default.
Add a new "Dry Run" summary page.
When a "Dry Run" is performed the end result should be a summary page like so: