Project

General

Profile

Actions

Feature #36466

closed

Allow gathering information on deleted records

Added by Oleh Fedorenko 12 months ago. Updated 9 months 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 #1

Updated by The Foreman Bot 12 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/9725 added
Actions #2

Updated by The Foreman Bot 9 months ago

  • Fixed in Releases 3.9.0 added
Actions #3

Updated by Oleh Fedorenko 9 months ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF