pases 5 ticket updates

This commit is contained in:
Mark Gregory
2026-06-23 11:10:52 +01:00
parent 2266298b6c
commit 7c4a94b5ea
12 changed files with 312 additions and 11 deletions
+11
View File
@@ -116,3 +116,14 @@
- Added retry handling around ticket creation so reference unique-index collisions do not produce a user-facing 500 error.
- Added regression coverage for out-of-order ticket references so lower references cannot be reused accidentally.
- Preserved append-only changelog history.
- version: 1.9.41
date: 2026-06-23
type: bugfix
summary: Fix Helpdesk ticket reference collisions caused by soft-deleted references and remove category agent N+1 queries.
changes:
- Updated ticket reference generation to include soft-deleted tickets and bypass global scopes when calculating the highest yearly reference suffix.
- Preserved the PostgreSQL advisory transaction lock and collision retry behaviour while preventing deleted references from being reused against the unique index.
- Eager-loaded category agents where categories are used by ticket creation/editing and agent assignment logic to remove the detected N+1 query warning.
- Added regression coverage to ensure soft-deleted ticket references are never reused.
- Preserved append-only changelog history.