Feature #16643

Allow user to know fact's origin

Added by Daniel Lobato Garcia 10 months ago. Updated 10 months ago.

Status:Closed
Priority:Normal
Assigned To:Daniel Lobato Garcia
Category:Facts
Target version:Team Daniel - iteration 3
Difficulty: Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman/pull/3874
Story points-
Velocity based estimate-
Release1.14.0Release relationshipAuto

Description

Facts can come from various sources, including the Discovery image, Puppet, Ansible, Salt, Chef...
The user has no way of determining which fact comes from where. The fact importers could easily set an 'origin' field to FactValue that each of the 'FactImporter' subclasses override. e.g: PuppetFactValue#origin is :puppet.
The origin field has to be set on FactValue, and not on FactName, as two sources of facts may provide the facts for the same FactName.
Based on these facts, the user can see in the facts table which facts come from where, which can be useful.
This field should be shown in API responses as well.


Related issues

Related to Chef - Feature #18057: Display nicer origin for the chef fact Closed 01/12/2017

Associated revisions

Revision f20020ce
Added by Daniel Lobato Garcia 10 months ago

Fixes #16643 - Display origin for facts

This commit sets the interfaces for the fact importers to start setting
a Fact origin, and display it in the UI

History

#1 Updated by The Foreman Bot 10 months ago

  • Status changed from New to Ready For Testing
  • Assigned To set to Daniel Lobato Garcia
  • Pull request https://github.com/theforeman/foreman/pull/3874 added

#2 Updated by Anonymous 10 months ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Dominic Cleal 10 months ago

  • Release set to 1.14.0

#4 Updated by Daniel Lobato Garcia 10 months ago

  • Target version set to Team Daniel - iteration 3

#5 Updated by Marek Hulán 6 months ago

  • Related to Feature #18057: Display nicer origin for the chef fact added

Also available in: Atom PDF