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 #1

Updated by The Foreman Bot over 1 year 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 over 1 year ago

  • Fixed in Releases 3.9.0 added
Actions #3

Updated by Oleh Fedorenko over 1 year ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF