Project

General

Profile

Bug #17644

Inconsistent host content_source field between UI and API

Added by Andrew Kofink over 4 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
medium
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

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:

Related issues

Related to Katello - Bug #21057: Missing 'Content Source' output in `hammer host info`Closed2017-09-21

Associated revisions

Revision 02caee7e (diff)
Added by Andrew Kofink over 4 years ago

Fixes #17644 - mv content_source to content_facet

Migrate the content_source_id column from the hosts table to the
content_facets table. Update Hosts#Edit and Hostgroups#Edit pages.

History

#1 Updated by Andrew Kofink over 4 years ago

  • Subject changed from Inconsistent host content_source field between UI and API to Inconsistent host content_source field between UI and API
  • Target version set to 147

#2 Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Andrew Kofink
  • Pull request https://github.com/Katello/katello/pull/6504 added

#3 Updated by Andrew Kofink over 4 years ago

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

#4 Updated by Justin Sherrill over 4 years ago

  • Category set to API
  • Legacy Backlogs Release (now unused) set to 211
  • Difficulty set to medium

#5 Updated by Justin Sherrill over 4 years ago

  • Legacy Backlogs Release (now unused) changed from 211 to 188

#6 Updated by Daniel Lobato Garcia over 3 years ago

  • Bugzilla link changed from 1387599 to 1488130

#7 Updated by Andrew Kofink over 3 years ago

  • Related to Bug #21057: Missing 'Content Source' output in `hammer host info` added

Also available in: Atom PDF