In courses the recertification of tests should be surveyed in a better way. Users should pass a test all 3 years.
To help coaches identifying the trainees that need recertification, the said users need to be highlighted in the coaching tool. Currently, the certification date is known by the system, however the recertification interval / validity of the certificate is not accessible from within the coaching tool.
The solution is to add a "next recertification date" to the certificate data structure. This is written based on the course recertification interval when creating the certificate. In the coaching tool, the alert symbol is placed next to the certificate whenever this next-recertification date has been reached.
- Add new field to certificate datastructure: dateNextRecertification (adapt wording to match existing code)
- Set dateNextRecertification whenever a certificate is generated and the course has recertification enabled. Otherwise set it to null
- In coaching tool calculate validity of existing certificate: if dateNextRecertification < now => certificate is invalid, recertification is needed
- Add migration code if possible to add dateNextRecertification to existing certificates in courses that have recertification enabled