You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, entities that are deleted on the server, but that Collect has never seen in a server entity list will exist locally forever.
Acceptance
Given I've created an entity locally
And submitted the form that created it
When the entity is deleted on the server
And the entity list is then updated
Then the entity does not still appear in follow-up forms
And the entity doses not still appear in "View local entities"
Collect should limit the number of UUIDs included when constructing the request to integrityUrl so that the request is 2000 characters or fewer (to avoid problems with URL length limits)
Notes
Collect will need a new endpoint in OpenRosa for this to work - Collect needs to ask the server if a local entity that does not appear in the entity list has been removed on the server or not. The current thinking is for that to be provided in the mediaFile for the entity list as integrityUrl like this:
Collect would be able to make a request to this URL and pass entity IDs (like http://central.example.com/integrity?id=id1,id2) and that would respond with:
This URL end point isn't implemented yet, but because we'd only ever make the request if integrityUrl was present we can implement this as-is before the Central is finished.
The text was updated successfully, but these errors were encountered:
seadowg
changed the title
Entities need to be manually deleted after being removed on the server
Locally created/updated entities removed from the server should eventually be removed locally
Jun 26, 2024
seadowg
changed the title
Locally created/updated entities removed from the server should eventually be removed locally
Locally created entities removed from the server should eventually be removed locally
Jun 26, 2024
Blocked by Open Rosa spec
Currently, entities that are deleted on the server, but that Collect has never seen in a server entity list will exist locally forever.
Acceptance
Given I've created an entity locally
And submitted the form that created it
When the entity is deleted on the server
And the entity list is then updated
Then the entity does not still appear in follow-up forms
And the entity doses not still appear in "View local entities"
Collect should limit the number of UUIDs included when constructing the request to
integrityUrl
so that the request is 2000 characters or fewer (to avoid problems with URL length limits)Notes
Collect will need a new endpoint in OpenRosa for this to work - Collect needs to ask the server if a local entity that does not appear in the entity list has been removed on the server or not. The current thinking is for that to be provided in the
mediaFile
for the entity list asintegrityUrl
like this:Collect would be able to make a request to this URL and pass entity IDs (like
http://central.example.com/integrity?id=id1,id2
) and that would respond with:This URL end point isn't implemented yet, but because we'd only ever make the request if
integrityUrl
was present we can implement this as-is before the Central is finished.The text was updated successfully, but these errors were encountered: