Pocro Vento Documentation

Backend: Editing existing assessment

GitHub Issue: #218

Last modified with commit 7a580a0 on by Aljaž.

Backend task for editing an assessment (POST /assessments/{assessmentId}) – check the API spec and DB structure, the candidate, board member and argumentacija rules, implement, and verify against the spec.

Docs: Editing existing assessment Spec: POST /assessments/{assessmentId} (updateAssessment), AssessmentNewRequest, AssessmentConflict in api-docs/openapi.yaml DB: Assessments, AssessmentCandidates, AssessmentWrittenTestGrades, AssessmentBoardMembers, AssessmentGrades, AssessmentNotes in api/database/create_schema.sql

1. Double check API spec and DB structure

2. Implementation

All in one transaction (several writes), in this order, committed only when every statement succeeds. Don’t check for data before deleting: run the write and map the error, so a grade saved at the same moment can’t slip through.

3. Verify implementation against spec

Done when

All the edit rules in the docs are enforced by the API.