Bug #14190
closedAPI and WebUI Inconsistent full hostgroup naming
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1195180
Description of problem:
The naming of the full hostgroup is inconsistent in both WebUI and API. In total is has 4 different names for the same value:
API
hosts -> hostgroup_name
hostgroups -> title
WebUI search has:
Hosts -> hostgroup_fullname or hostgroup_title field
Host Groups -> label field
API:
- curl -K /opt/hoici/etc/sat6/curl-hoici.conf "-HContent-Type: application/json" "-d{\"per_page\":9999}" -XGET https://localhost/api/v2/hostgroups | jq '.results[] | .title' | grep Backup
"crash/Backup"
"crash/Backup/BackupTest"
- curl -K /opt/hoici/etc/sat6/curl-hoici.conf "-HContent-Type: application/json" "-d{\"per_page\":9999}" -XGET https://localhost/api/v2/hosts | jq '.results[].hostgroup_name' | grep Backup
"crash/Backup/BackupTest"
WebUI search:
Host Groups page:
"label ~ Backup"
Hosts page:
"hostgroup_fullname ~ Backup"
or
"hostgroup_title ~ Backup"
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. Create nested hostgroups
2. Add host to hostgroup
3. Query the full hostgroup name/label
Actual results:
Different field names has to be used
Expected results:
Consistent field name. Preferably label as this is also consistent with the Katello part.
Additional info:
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3378 added
Updated by Ori Rabin over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset a322a96e9a948f3b3638fd8af8b84c4d70bcb4d7.
Updated by Dominic Cleal over 8 years ago
- Translation missing: en.field_release set to 136