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
Make sure that entity lists are consistent between follow up forms #6029
Comments
@grzesiek2010 would be really interested in your thoughts around the best way to move forward here. To my mind, there are two distinct approaches here:
It feels to me like 2 makes the most sense long term and it also feels a little simpler (there's no timestamp comparisons etc). I'm thinking it would mean either adding something to How does all that sound? It's probably a little fuzzy, but I wanted to talk it through before diving in. |
Sorry for the late response! |
Blocked by #5972Entity lists should be the same across all follow up forms on device. Inconsistencies are unlikely to happen when using "Exactly match server", but it's fairly possible to construct a scenario where they could be inconsistent for some implementations if using manual downloads.
Acceptance
And there are two entity follow up forms on the server
And I've downloaded the first
When a new entity is added on the server
And I download the second form
Then the new entity is included in the first form
Notes
We probably want to add something the OpenRosa API so that the client can know that a secondary instance CSV is an entity list so that we don't need to flag it manually.
One way to implement this would be to copy the entity list CSV somewhere shared when we do a form download/update. Then,
OfflineEntitiesExternalDataInstanceProcessor
could read this in and ignore the actually form's own CSV. This would maintain the efficiency problems(/opportunities) we have, but that might be a good idea so that we can approach #5623 without having already built a DB for entities. Alternatively, we can take the leap into a shared piece of storage (created at form download/update) for online and offline entities if we feel like we're seeing both in the entity browser is going to be important any time in the future.The text was updated successfully, but these errors were encountered: