mirror of
https://github.com/penpot/penpot.git
synced 2026-11-27 13:32:28 +00:00
* 🐛 Submit the import audit events from the import job Since 2.20 the dashboard imports .penpot files through the :import-binfile job, which submitted no audit event. The outcome of an import and the files it created were lost, so analytics could no longer tell completed imports from failed ones. The job now submits the import-binfile event with the name and props of the legacy RPC event (status, file-ids, file-count, project, version, generated-by, referer), plus the job id, the team id, the package size and the elapsed time. A cancelled job reports the cancelled status. A completed import also submits a create-file event per imported file, as the legacy RPC does. As in the RPC, an import refused by the permission check submits no event. Closes #13148 AI-assisted-by: claude-opus-5-5 * 🐛 Audit import jobs at their terminal transition Run optional terminal hooks in the winning job transaction and use one for import audit events. Preserve the separate import transaction and cover cancellation, rollback, RPC paths, and dispatcher aborts. AI-assisted-by: gpt-6.1-terra * ♻️ Simplify the terminal job hook contract Pass a semantic terminal job to the hook with its final status and decoded parameters, result or error. Adapt the import audit and tests. AI-assisted-by: gpt-6.1-terra * 🐛 Keep import jobs bound to their original team Freeze the destination team when creating an import job and serialize imports with project moves. Use the frozen team for audit and webhook events, and keep compatibility with existing jobs. Select import audit props explicitly to prevent new job parameters from being included in events by default. AI-assisted-by: gpt-6.1-terra * 📚 Document the import team fallback removal Mark the legacy job audit fallback for removal in version 2.21.0. AI-assisted-by: gpt-6.1-terra * 🔧 Validate canonical AI model IDs in commit trailers Require bare lowercase model IDs in AI-assisted-by trailers and cover the validation with tests. Align the commit and PR workflows with the same attribution rules. AI-assisted-by: gpt-6.1-terra --------- Co-authored-by: Andrey Antukh <niwi@niwi.nz>