Repository navigation
v1.76.0
A minor release rather than a patch: the audit log's morph ids become strings
(see the migration guide) — a raw query comparing subject_id/actor_id with
an integer on PostgreSQL has to compare with a string or use
forSubject()/forActor().
Fixed
- Auditing a record with a uuid or string key failed with a 500. The
audit log's morph ids werebigint(nullableMorphs), so on PostgreSQL any
entry about such a record —{slug}/revealof a masked column, a
Loggablechange, an impersonation of a uuid-keyed user — failed with
invalid input syntax for type bigint, and the request with it (MySQL refused
or truncated it, depending on its SQL mode). A new migration,
make_admin_audit_logs_morph_ids_strings, makesactor_id,subject_id
andimpersonator_idvarchar(64), keeping the data and the indexes; it
rolls back while every stored id is numeric. The ids are written as strings
(theMorphKeycast) and an integer key reads back as an int, as before.
AuditLog::forSubject()/forActor()andLoggable::auditLogs()compare
the key as a string, eager loading included (PostgreSQL has no
varchar = integer).audit/listandaudit/timelinedocument
subject_id/actor_idas strings. - The SPA's import did nothing but fail. The list's Import button sent
upload_id, readmappingandprocess_idand waited for statusdone,
whileimport/*takes and returnspath,auto_mapping,process.idand
completed: every import ended with the error toast. The flow now follows
the documented contract (composables/importFlow.ts), counts created and
updated rows, reports a failed import's own error and stops polling when
startalready returns a finished process. - The import's OpenAPI schemas described a different API.
ImportUploadPayloadandImportPreviewPayloadnow describe what
import/uploadandimport/previewreturn;ImportProcessPayload.process
references a newImportProcessschema. The unusedImportTargetField,
ImportPreviewRowandImportPreviewSummarywere removed.
Added
- The package's tests run on PostgreSQL or MySQL/MariaDB as well:
ADMIN_TEST_DB_DRIVER=pgsql|mysql|mariadbwithADMIN_TEST_DB_HOST,
_PORT,_DATABASE,_USERNAME,_PASSWORD.