Skip to content

Releases

v1.2.0

Choose a tag to compare

@joaquimsantos1978 joaquimsantos1978 released this 04 Dec 11:47

Changed

  • Laravel 13 (was Laravel 10, which no longer receives security fixes). PHP 8.3 or newer is now required (8.4 recommended); PHP 8.2 stops receiving security fixes at the end of 2026. Sanctum 4, Tinker 3 and Carbon 3 come with it; composer audit reports no advisories.
  • Uploaded images that are validated as image (project cover, site logo) no longer accept SVG files, as in Laravel 12 and later: an SVG can carry scripts. JPEG, PNG, GIF, WebP and so on are unchanged.
  • Durations (the time spent column, the sync history) are whole, non-negative seconds under Carbon 3 as before.
  • Maintenance is done by commands run by the scheduler, no longer by visiting addresses (see Removed). New command php artisan platform:autovalidate, which validates whatever already has enough agreement on every specimen (each submission already does it for its own specimen; the command only catches up after an interruption).
  • The nightly recount of contributors also moves people up to the level their validated contributions now reach (for example after the number a level requires was lowered). Levels are never lowered automatically.
  • The manual sync page (Validation menu) is shown inside the site, with its menu, and still sends one record at a time. Opening it only shows the record; it is sent with the Send to Specify button, and the buttons of the validated list and Process next are buttons too (POST), so following a link or reloading a page never writes to Specify. Dry run is a button next to it (it was ?dryrun=1 in the address).
  • After an upload of specimens or a change of a project's fields, only that project's progress is recalculated (it was every project).
  • Internal: the sync with Specify (ApiController, 1,600 lines) is now the service SpecifySync; validation, the choice of the next specimen and the counts are services too, and controllers no longer call each other. Models and the user-levels controller have consistent class names (Field, FieldOption, FieldMapping, CollaborativeField, ValidatedField, SpecifyField, Comment, Dialog, UserCategory, WeekReport, UserCategoriesController); the database tables are unchanged.

Fixed

  • Debug output (echo and print_r) in the automatic validation that runs after every submission, and in the re-evaluate validation page, is gone: it was written into the response of whoever submitted, before the redirect.
  • The class in FieldsController.php is now spelled FieldsController (it was fieldsController, which Composer reported as not matching its file name).
  • The project page shows the number of specimens again (it was empty).
  • The export of validated values as CSV no longer writes a temporary file into public/ (two downloads at the same moment could mix), and no longer fails when there is nothing to export.
  • A failed connection while logging in to Specify is logged instead of being printed into the page.
  • An upload of specimens is all or nothing: a file with a bad row no longer leaves a project half replaced (or emptied), and a failure is shown as a message instead of printing the error into the page.
  • Promotion to a higher level tries the levels in order of their points, so a person always ends at the highest level they reach.

Removed

  • Addresses that changed data when visited (GET): /update_user_counts, /users_weekly_report, /update_project_stats, /promote_users, /validate/autovalidate, /validate/reevaulate_validation (a one-off repair of old data), /build_all_missing_dialogs, /update_tree_options and /fill_options_from_current (both broken), and /ingest_validated_nested (the same page as /validate/manual). Nothing in the interface linked to them; the scheduler already does the counts, the project figures and the weekly ranking. If a cron job on the server called any of them, remove it: the cron line of the installation guide is all that is needed.
  • Code nobody used: empty controller stubs, methods without a route, three views, routes that pointed to methods that do not exist (/ingest_validated, create/edit/update of user categories), relations that pointed to classes that do not exist, unused use statements, commented-out code (including HTML comments that were sent to every browser), and the Laravel broadcasting leftovers (BroadcastServiceProvider, routes/channels.php, config/broadcasting.php, the BROADCAST_DRIVER and PUSHER_* lines of .env.example).
  • .env.example: the Memcached, Redis, AWS and VITE_APP_NAME lines, which the platform does not use.

Security

  • What users type reaches other people's pages as text, never as markup: comments (addresses in them are still links), transcribed values, error messages and names in the validation, contributors and users lists, and the texts of fields, languages and levels in the administration.
  • A submission only stores the fields of that project the person may work on (their level, not hidden by them) for a specimen of that project, the same ones the form shows; anything else in a hand-made request is left out.
  • Uploaded project covers and the site logo are stored under a name the platform makes, with the extension of what the file really is (it was the extension the browser sent). Languages no longer take an image (it was never shown), and their code is letters only.
  • The language cookie and the browser's language count only when they name a language of the platform; the sort column of the validated list only when it is one of its columns.
  • In production, addresses are built on APP_URL even when the routes are cached (php artisan optimize).
  • The field-view and hide-field buttons only go back to a page of this site (an address like //other.site was followed).

Upgrading from 1.1.0

git pull
composer install --no-dev --optimize-autoloader
php artisan optimize:clear

Check php -v first: it must be 8.3 or newer. No database migration is needed. optimize:clear matters this time: it empties the cache, which may hold objects under the old class names.

v1.1.0

Choose a tag to compare

@joaquimsantos1978 joaquimsantos1978 released this 02 Dec 09:36

Added

  • Those who manage a project now see who created it and who else manages it (project page, project list, project form). Other users do not.
  • In the project form the creator is listed first among the project managers, ticked and locked: they always manage the project and cannot be removed from it.

Changed

  • The list of Project managers can now be changed by administrators and by the managers of that project (the creator included), not only by administrators. A manager who unticks themselves is asked to confirm, because they lose access to the project.
  • PHP 8.2 is now the minimum declared in composer.json, as the documentation already said.
  • The .htaccess in the project folder now answers everything from public/. The web server's document root should still be public/.

Fixed

  • Sync with Specify: after a refused login to a project's collection, trying again from the same browser session could write into the collection of the earlier login.

Removed

  • Unused files and examples of the Laravel skeleton (welcome page, inspire command, /api/user route).

Security

  • PHP libraries updated within the allowed versions (Laravel 10.50.5 and current Symfony 6.4 releases). Laravel 10 itself no longer receives security fixes; moving to a supported Laravel version is planned as the next major release.

Upgrading from 1.0.0

git pull
composer install --no-dev --optimize-autoloader
php artisan route:clear

No database migration and no new configuration are needed.

Full list: CHANGELOG.md

v1.0.0

Choose a tag to compare

@joaquimsantos1978 joaquimsantos1978 released this 22 Nov 21:47

First public release of the transcription platform: a web application where volunteers and staff transcribe the labels of natural history specimens from images, several people independently for each specimen. Values that enough of them agree on become valid, and the validated data can be exported or written into a Specify 7 collection database through its REST API.

Highlights

  • Collaborative transcription with consensus: submissions weighted by contributor level, a validation threshold, promotion by validated work.
  • Flexible fields and projects: text, text area, select, radio, checkboxes and date; multiple and multi-part values; one field per screen or all at once.
  • Sync with Specify 7: schema-aware mapping (write, look up, follow a relation), date precision, conflict detection with a human decision, a dry run that writes nothing, and an automatic sync per project with a global switch, a history and failure e-mails. Works across collections and disciplines (trees are searched in the record's own discipline).
  • Independent of any institution: logo, name, languages, user levels and texts are all set in the application, in every language.
  • A small website around it (menu, pages, footer) managed in the application, roles and access control, optional self-registration, account deletion that keeps the contributions anonymised.

Requirements

PHP 8.2 or 8.3, MySQL 8+ (or MariaDB 10.4+), Composer, Node.js (only to build the stylesheet), and one cron line for the scheduler. Start with docs/installation.md; php artisan platform:install prepares a new installation, including the first administrator.

Good to know

  • Laravel 10 is the last version of its series; five low to high advisories remain in laravel/framework and are fixed only from Laravel 11 (planned).
  • The text editor is CKEditor 4.22.1, the last open-source release of a library its vendor no longer maintains; replacing it is planned.
  • Specify judges permissions by the collection the API user is logged in to, not by the record's collection. Use one project per collection, with its own Collection to sync into; see docs/administration.md.

Licensed under the Apache License 2.0. The full list of what this version contains, and the steps to update an existing installation, are in CHANGELOG.md.