Bug #22197
openLong Puppet Environment names are not shown in full in Host(group) form
Description
Description of problem:
When puppet environment name is long, it is not displayed fully in dropdown inside hosts/hostgroups form. If there are multiple environments with the same prefix, this makes it very difficult to choose the correct one. This is especially the case with environments coming from katello where names are composed of organization and lifecycle environment.
Steps to Reproduce:
with katello:
1. Create organization "Very Long Organization" with LFE "Very Long Lifecycle Environment"
2. Create puppet repo containing at least 1 module
3. Create two CVs "Very Long Content View #1" and "Very Long Content View #2" having at least 1 puppet module and publish and promote them to "Very Long Environment"
4. Navigate to Create/Edit Hostgroup and click the "Puppet Environment" dropdown and you cannot distinguish between environments since their names are clipped to "KT_Very_Long_Organization_Very_Long_Lifecycle_Environment_Very_Long_Content_V"
KT_Very_Long_Organization_Very_Long_Lifecycle_Environment_Very_Long_Content_View__1_5
KT_Very_Long_Organization_Very_Long_Lifecycle_Environment_Very_Long_Content_View__2_6
without katello:
1. navigate to Configure > Environments
2. create 2 environments very_long_prefix_suffix, very_long_perfix_different_suffix
3. navigate to Create Host(Group) and try to select puppet environment in dropdown
Files