opensrp / opensrp-client-eusm

OpenSRP client for EUSM
Other
0 stars 1 forks source link

"Undo" events should archive the original event #27

Closed cafootitt closed 3 years ago

cafootitt commented 3 years ago

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.

cafootitt commented 3 years ago

@bennsimon I'm unable to QA this myself, so please close if you're reviewed and it's working ok.

cafootitt commented 3 years ago

Able to test this by exporting mission data. Complete a task, undo it, make sure it doesn't appear in the mission export data.

cafootitt commented 3 years ago

Closing this issue, will QA as part of testing scripts and when mission data download is working.