getodk / getodk/central

Resolving an entity modifies OpenRosa hash and ETag of entities CSV

Open
#544 1 comment 2 reactions 0 assignees View on GitHub
backend
Dominant language
JavaScript
Stars
226
Forks
235
Avg merge
2d 22h
Merged PRs (30d)
19

Description

The entities CSV has an OpenRosa hash and ETag based on the latest `createdAt` or `updatedAt` among the entities. When the OpenRosa hash changes, OpenRosa clients will re-download the entities CSV. Right now, if an entity is marked as resolved, its `updatedAt` timestamp is changed even if no new version of the entity is created. That has the effect of changing the OpenRosa hash and ETag. I think it is the correct behavior to change the `updatedAt` timestamp in this way, as that's similar to what we do with submission review states. However, I think we should try to find a way to avoid the side effect of re-download to OpenRosa clients.

This issue seems thematically related: getodk/central-backend#1041. That said, the two issues might end up being pretty separate.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.