Pocro Vento Documentation

Backend: Editing existing BTC certificiranje

GitHub Issue: #251

Last modified with commit 7a580a0 on by Aljaž.

Backend task for updating a BTC certificiranje (POST /btc-certifications/{certificationId}) – check the status rule, candidate and komisija matching, soft-deleted members and the "candidate has grades" rule against the API spec and DB structure, implement, and verify against the spec.

Docs: Editing existing BTC certificiranje Spec: POST /btc-certifications/{certificationId} (updateBtcCertification), BtcCertificationNewRequest, BtcCertificationConflict in api-docs/openapi.yaml DB: BtcCertifications, BtcCertificationCandidates, BtcCertificationWrittenExamScores, BtcCertificationBoardMembers, BtcCertificationGrades in api/database/create_schema.sql

The form is prefilled from GET /btc-certifications/{certificationId} (Backend: BTC certificiranje detail).

1. Double check API spec and DB structure

2. Implementation

3. Verify implementation against spec

Done when

A trainer can edit an active or upcoming certificiranje, and no grades are lost when candidates or komisija members change.