Open
Description
This ticket should be done after #1684.
Context
The Service Tickets UI for CIM is retrieving the entire ticket document -including all emails- every 5 seconds.
This causes unnecessary network/memory/database load; especially for "grote storing" tickets as we experienced in #161.
The proposed solution is for the UI to query only the data that it needs, and only on the first load - or when the data changes.
Proposal for this issue
- Remove 5 second polling on Service Ticket pages
- Add websocket connection to
/cim/events
(similar to orchestrator's /api/events) to wait forinvalidateCache
events on specific tickets - Refresh list page on any ticket update, and detail page only for matching ticket_id
This ticket requires/is blocked by the backend ticket https://git.ia.surfsara.nl/netdev/automation/projects/cim/-/issues/165