Skip to content

ExtraUpdateRequestedEvent

EventType: EXTRA_UPDATE_REQUESTEDDomain: admin Broker subject:

Stores arbitrary extra data on a job or work order document without going through the standard production event flow. Used for operator-assisted data corrections or custom field updates that do not map to a domain event.

No broker notification

ExtraUpdateRequestedEvent extends BaseAdmin, which itself extends BaseProductionEvent. However, ExtraUpdateRequestedEvent does not set _notification_subtopic, so no broker message is published after commit.

Trigger

Triggered by: POST /event (universal event dispatcher)

Dispatched via POST /event in backend/api/endpoints/traceability.py with event_type: EXTRA_UPDATE_REQUESTED.

Preconditions

  • Entity identified by info.entity_type + info.entity_key exists

State Changes (Transaction)

Collections: Job, WorkOrder

  • Target document (Job or WorkOrder) updated: extra field set to info.extra_data

Side Effects (post_processing)

Extends BaseAdmin.post_processing():

  • Calls update_work_order()
  • Sets job.forced = event_key
  • No broker publish (no _notification_subtopic)

InfoModel Fields

FieldTypeDescription
entity_typeLiteral['job', 'work_order']Type of entity to update
entity_keystrArangoDB key of the entity
extra_dataAnyArbitrary data to store in the extra field
job_keystr | NoneJob key (for post_processing context)
work_order_keystr | NoneWork order key (for post_processing context)

None.

Source

ExtraUpdateRequestedEvent on GitHub

Released under the Apache 2.0 License.