Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1255182

Summary: Capsule descriptions are trunctated to 32 chars irrespective of cell width
Product: Red Hat Satellite Reporter: Andrew Schofield <andrew.schofield>
Component: ProvisioningAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bbuckingham, bkearney, lpramuk, sthirugn
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/13385
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1293486 (view as bug list) Environment:
Last Closed: 2016-07-27 08:54:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andrew Schofield 2015-08-19 21:06:16 UTC
Description of problem:
Capsule descriptions in the web UI do not resize to the width of the cell (So if your description for the capusule goes over 32 chars then this is only visible on the rollover).


Version-Release number of selected component (if applicable):
6.1.1 GA

How reproducible:
N/A - web layout

Steps to Reproduce:

This is generated by /usr/share/foreman/app/views/smart_proxies/index.html.erb at line 17:

<td><%= link_to_if_authorized trunc(proxy.name), hash_for_edit_smart_proxy_path(:id => proxy).merge(:auth_object => proxy, :authorizer => authorizer) %></td>

And the trunc method (from : /usr/share/foreman/app/helpers/layout_helper.rb) says this:

def trunc(text, length = 32)
    text    = text.to_s
    options = text.size > length ? { :'data-original-title' => text, :rel => 'twipsy' } : {}
    content_tag(:span, truncate(text, :length => length), options).html_safe
  end



Actual results:
Description text is trucated to 32 chars

Expected results:
Text should match the column width

Additional info:

Comment 2 Bryan Kearney 2016-01-12 20:39:09 UTC
Since i missed this earlier... 1255182  is about the capsule name, 1293486 is about the puppet class.

Comment 3 Brad Buckingham 2016-01-26 17:42:35 UTC
Created redmine issue http://projects.theforeman.org/issues/13385 from this bug

Comment 4 Bryan Kearney 2016-01-26 19:00:51 UTC
Upstream bug component is Provisioning

Comment 5 Brad Buckingham 2016-01-27 12:32:07 UTC
Based on the comment in the upstream redmine, this has already been addressed.  Moving the bug to POST, since it should be included with the next rebase.

Comment 8 Lukas Pramuk 2016-04-05 11:25:56 UTC
VERIFIED.

@Sat6.2.0-Beta-Snap6

Smart proxy (=capsule) name at UI is no longer ellipsized at all.
The name is now only wrapped at dashes.

Comment 10 errata-xmlrpc 2016-07-27 08:54:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1500