If a grower selects edit in Kobo dashboard (and tina says ok)
Step 1: Does Kobo have an on-edit webhook
If yes, set up on-edit webhook
If no, create a cron job to reach out to Kobo (periodically? ) (this would be an issue for a dashboard scenerio). In a cron job - check does submission id exist? If yes, is the date same as record that exists? If same, skip. If new, create a new record.
If we are trying to show users the updates - View Submission works instantly
If our system is slightly out of sync with Kobo, that is because we are trying to have farmers view from our database, and we should probably be linking directly to Kobo.
We should re-visit why we are storing forms and not viewing them on Kobo directly? Particularly since our plan is the provide the user the ability to view on Enketo.
Why not allow farmers to edit their submissions?
Scenario:
If our system is slightly out of sync with Kobo, that is because we are trying to have farmers view from our database, and we should probably be linking directly to Kobo.