Closed cafootitt closed 3 years ago
@bennsimon I'm unable to QA this myself, so please close if you're reviewed and it's working ok.
Able to test this by exporting mission data. Complete a task, undo it, make sure it doesn't appear in the mission export data.
Closing this issue, will QA as part of testing scripts and when mission data download is working.
See related discussion issue here: https://github.com/OpenSRP/opensrp-client-eusm/issues/23
For the 4 types of tasks (Record GPS, Service Point Check, Flag Problem, Fix Problem), the corresponding "Undo" events should archive the original event submission and change the task status back to the state it was in before the event submission.
On the server side, this will mean the events, even when uploaded on the server, will not show on the exports since archived is not by default returned by any APIs.