Actions
Feature #36466
closedAllow gathering information on deleted records
Description
Foreman allows subscriptions to the events that occur on ActiveRecord objects (such as an object being created). The problem is that when an object is destroyed, the dependent bonds are being destroyed also with relational links, and can't be referenced afterwards.
The problem can be easily observed via foreman_webhooks plugin:
0. Have a host with some interfaces.
1. Create a webhook template with `@object.interfaces` payload.
2. Create a webhook and subscribe to host destroyed event.
3. Delete the host.
4. Notice that payload contains no interface information.
Actions