.. include:: /Includes.rst.txt .. _bugfix-1793166663: =============================================================== Bugfix: Evaluate the violations again when the rule set changes =============================================================== Description =========== A recalculation skipped a day whose inputs were the same, so a changed check never reached it: the days that carried both "break too short" and "too long without a break" kept the two rows after the check was fixed. The fingerprint of a day now includes the version of the rule set (adsum's own checks and the ``ruleSetVersion()`` of every package that implements ``ViolationRuleCodes``). Raising a version counts every day as changed, and the next ``app:attendance:recalculate-days`` evaluates and writes them. Impact ====== ``ViolationRuleCodes`` has a new method, ``ruleSetVersion()``; a package that implements it has to add it. The first recalculation after the upgrade writes every day once, as the fingerprints change. The German checks start at version 2 and 1. .. index:: PHP-API, CLI, package:adsum-attendance