Release Notes: v2.10.3 — Agreement, Deploy Button and Pyodide Fixes¶
Three fixes for bugs found in 2.10.2 after it was published.
pip install --upgrade potato-annotation
Bug fixes¶
/admin/api/agreementwhen everyone agrees. If every annotator gave the same answer on every item, the schema came back as{"error": "float division by zero"}. Chance agreement is 1 in that case, so alpha and both kappas are undefined. The route now reports them asnull, withpercent_agreement1.0 and the same note/admin/iaagives.overallleaves the schema out of its averages.potato deploy button --dry-runstays offline. Without--hf-backup-repo, the dry run asked HuggingFace who the token belonged to, and a bad token ended in a traceback. The dry run now uses the placeholder<hf-account>/<name>-annotations, aspotato deploy up --dry-rundoes. A real run reports a rejected token as an error message.- Importing Potato no longer hashes a password.
potato.authenticationcomputed a PBKDF2 hash at import, used to make failed logins for unknown usernames take as long as real ones. That cost every process 100,000 PBKDF2 iterations at startup, CLI tools included, and broke the import under Pyodide, whosehashlibhas nopbkdf2_hmac. The hash is now made the first time an unknown username tries to log in.