Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CEP] Flag for Web Apps autosync #26940

Open
ctsims opened this issue Mar 23, 2020 · 0 comments
Open

[CEP] Flag for Web Apps autosync #26940

ctsims opened this issue Mar 23, 2020 · 0 comments
Labels
CEP CommCare Enhancement Proposal

Comments

@ctsims
Copy link
Member

ctsims commented Mar 23, 2020

Abstract
Allow optional auto-syncing behavior for web apps

Motivation
When teams are using case sharing and performing time sensitive changes to shared case models in web apps, it can be common for them to update shared data more frequently than users are manually or automatically performing.

The lowest hanging fruit for correcting this issue would be for the system to trigger a sync immediately after a form is processed and submitted. This is safer than other times because the user doesn't have a session which could have been invalidated by changes to data.

Specification
If a flag is set, after clicking the submit data button in a web apps form the request to submit to the Formplayer engine should provide a parameter to specify that after the form is processed, a sync action should occur.

Formplayer should ideally perform the sync before processing any end of form navigation actions (in case they are invalidated).

It is acceptable for the sync to be blocking for now (since this behavior would not be used by projects where syncs are not extremely fast.

Impact on users
The form entry operation will take more time, depending on the scope and scale of the case count, which is why this behavior is recommended to be flagged. This behavior would be especially ill advised when syncs take long amounts of time to compute due to UCR's.

@ctsims ctsims added the CEP CommCare Enhancement Proposal label Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CEP CommCare Enhancement Proposal
Projects
None yet
Development

No branches or pull requests

1 participant