Skip to content

Update OpenRosa hash less often when entity access is limited #1137

@matthew-white

Description

@matthew-white

#952 made it possible to limit which entities are included in an entity list that's linked to a form attachment. If the ownerOnly flag is set to true, then actors who can't entity.list will only have access to entities that they themselves created. That includes app users, web users with the Data Collector role, and public links.

However, #952 only changed the content of the entity list download, not the OpenRosa hash. Without changing the hash, Collect will redownload the list whenever there's any change to the entity list. If ownerOnly is true, then we want the OpenRosa hash to only change when the relevant subset of the entity list has changed. The goal is to limit how often the entity list has to be (re)downloaded to OpenRosa clients like Collect.

Metadata

Metadata

Assignees

Labels

backendRequires a change to the API server

Type

No type

Projects

Status

✅ done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions