Project

General

Profile

Actions

Feature #36466

closed

Allow gathering information on deleted records

Added by Oleh Fedorenko over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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

Also available in: Atom PDF