getodk / getodk/central

Improve error message when attempting to edit a deprecated version of a submission

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

Description

From @dbemke in #794:

If a user tries to re-submit a submission which was edited in Central there is: “You tried to update a submission, but the copy you were editing (undefined) is now out of date. Please get the new version that has been submitted, and make your edits again.”
![errorOutOfDate](https://github.com/user-attachments/assets/cbf64e2c-49f0-4b88-b9d8-10a476c00cd7)

This message was designed specifically for the case where there's an attempt to edit a submission version that has been deprecated. This might happen, for example, if you open up two Enketo edit windows from Central, submit one, and then submit the other.

The case in the screenshot above is an attempt to submit the very first submission in an edit chain again after edits have been made. This is happening from Collect where there is no way to get the latest version so the second part of the message isn't helpful.

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.