added submission history, data insights, download all functionality
This commit is contained in:
@ -468,8 +468,9 @@ Current upload behavior:
|
||||
|
||||
- Unknown or empty `questionID` values are skipped.
|
||||
- Unknown `answerOptionKey` values are stored as no selected option for that question.
|
||||
- Re-uploading the same `clientCode` and `questionID` overwrites the previous answer.
|
||||
- Re-uploading the same `clientCode` and `questionID` overwrites the previous answer in the **current** snapshot.
|
||||
- Re-uploading the same `clientCode` and `questionnaireID` overwrites the completed questionnaire status and point sum (supports correction / re-edit workflows).
|
||||
- Each successful POST also appends a **versioned submission** (`questionnaire_submission` + `client_answer_submission`) so the web dashboard can export all upload history. The app still reads only the current snapshot via `GET ?clientCode=…&answers=1`.
|
||||
- `sumPoints` is calculated from recognized `answerOptionKey` values.
|
||||
- The current database stores one selected answer option per question. If the Android UI allows multiple selections for a layout, coordinate a server change before uploading multiple option keys for one question.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user