Files
netbox/netbox
Martin Hauser c720b07538 fix(dcim): Refresh stale CablePath references during serialization
Cable edits can delete and recreate CablePath rows while endpoint
instances remain in memory. Deferred event serialization can then
encounter a stale `_path` reference and raise `CablePath.DoesNotExist`.

Refresh stale `_path` references through `PathEndpoint.path` and route
internal callers through that accessor. Update `EventContext` to track
the latest serialization source for coalesced duplicate enqueues, while
eagerly freezing delete-event payloads before row removal.

Also avoid mutating `event_rule.action_data` when merging the event
payload.

Fixes #21498
2026-04-01 16:00:00 +02:00
..
2026-03-30 09:29:08 -04:00
2026-03-31 12:43:26 -04:00
2026-03-31 12:43:26 -04:00
2026-03-31 12:43:26 -04:00