Actions
Bug #17644
closedInconsistent host content_source field between UI and API
Difficulty:
medium
Triaged:
Bugzilla link:
Pull request:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1387599
Description of problem:
When a host is registered with only Puppet there is a difference how the UI and the API provide the user feedback.
In the UI there is always a Content Source field shown.
The API does not return the content_source_id field when there is no content (and also no content_facet_attributes)
This is confusing for the end user. Why do i get a value in the UI, but when querying the API it is not available
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. Register a host with Puppet only
2. Query the hosts through the API
3. Edit the host in the UI
Actual results:
In step 2 there is no content_source_id *and content_source_name)
In step 3 the content source field is visible and populated
Expected results:
Consistent behaviour of the content source field. Either both visible in the API and UI or both shall be absent.
Additional info:
Actions