fixed N+1 issues
This commit is contained in:
@@ -193,15 +193,8 @@ versions:
|
||||
|
||||
"1.3.10":
|
||||
changed:
|
||||
- Fixed ticket detail N+1 warnings by eager-loading requester, agent and company relations on ticket hydration, ticket refresh and ticket control POST actions.
|
||||
- Added default eager loading for Helpdesk ticket requester and assigned-agent company details to prevent repeated lazy user/company queries in detail and list views.
|
||||
- Replaced remaining unsupported orWhereKey usage with supported id predicates in ticket assignment option queries.
|
||||
- Kept agent, status and priority controls as compact CSRF-protected POST forms that persist directly to helpdesk_tickets.
|
||||
- Fixed remaining ticket-detail N+1 alerts by loading requester and assigned agent users in one query and attaching owner/user/agent relations manually.
|
||||
- Removed duplicate owner/agent eager-load cycles from ticket control actions, workflow rendering and ticket service refreshes.
|
||||
- Stopped ticket detail render from reloading the ticket after mount so detail relations are not queried twice in one request.
|
||||
- Removed remaining orWhereKey usage from Helpdesk ticket agent option queries for Laravel 13 compatibility.
|
||||
- Kept module.json version in sync with changelog.yaml.
|
||||
|
||||
|
||||
- version: 1.3.11
|
||||
date: 2026-06-16
|
||||
changes:
|
||||
- Eager-loaded ticket requester, assigned agent, and related company records across ticket detail and workflow-control paths to remove remaining N+1 warnings on ticket load and after agent/status/priority actions.
|
||||
- Added the user relation alias on helpdesk tickets for compatibility with existing views, policies, detectors, and services that access the requester through either user or owner.
|
||||
|
||||
Reference in New Issue
Block a user