Skip to content

Connect to Service Ticket events WebSocket for refreshing list/detail page #1685

Open
@Mark90

Description

@Mark90

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 for invalidateCache 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions