IssueCreatedEvent
EventType: ISSUE_CREATEDDomain: collaboration Broker subject: progress.notification.issue
Inserts a new Issue document and creates issue_rel edges to all linked entities (work orders, jobs, products, serials, users, etc.). After writing the issue, updates the critical flag on any linked work orders and jobs based on the new issue's severity.
Sequence Diagram
Trigger
Triggered by: POST /event (universal event dispatcher)
Dispatched via POST /event in backend/api/endpoints/traceability.py with event_type: ISSUE_CREATED.
Preconditions
info.issue_datacontains a validIssueWithLinkspayload- All entities referenced in
linked_tomust exist
State Changes (Transaction)
Collections: Event, Issue, issue_rel, WorkOrder, Job, message (inherited from BaseCollaboration.get_tx_collections())
Issuedocument insertedissue_reledges inserted for each entry inlinked_toWorkOrderandJobcriticalflags updated via_update_production_status()
Side Effects (post_processing)
Inherits post_processing() from BaseCollaboration (which extends BaseEvent). BaseCollaboration does not override _notification_subtopic, but the Issue* events resolve to progress.notification.issue via the domain broker subject map.
InfoModel Fields
| Field | Type | Description |
|---|---|---|
issue_data | Any | None | Full IssueWithLinks payload including linked_to array |
Related Events
None.