[katello-devel] Labels in the UI
Mike McCune
mmccune at redhat.com
Tue Aug 27 18:56:36 UTC 2013
On 08/27/2013 11:14 AM, Bryan Kearney wrote:
> On 08/27/2013 02:12 PM, Og Maciel wrote:
>> ----- Original Message -----
>>> From: "Eric D Helms" <ericdhelms at gmail.com>
>>> To: "katello-devel" <katello-devel at redhat.com>
>>> Sent: Tuesday, August 27, 2013 1:41:14 PM
>>> Subject: [katello-devel] Labels in the UI
>>>
>>> Options:
>>>
>>> 1. Stay the same
>>> 2. Make server calls as the user types to show the label being generated as
>>> they type (like autocomplete)
>>> 3. Fetch the validation regex from the server and validate client side
>>> 4. Write the label generation code in JS and do everything client side
>>
>> (5) Labels are GUID that users could care less but are important for uniqueness, pulp/yum i18n support and hidden from view?
>>
> The only issue with this, which is why I like slugs, is that it makes it
> more readable. I repo which is at:
>
> /pub/Acme_Corporation/Development/Fedora/18
>
> is much easier to understand when you are on the box instead of
>
> /pub/3928032198/213932103802/2983019832109/32918039128320
that is exactly why we have labels. a yum repolist with an entire
series of guids is a deal killer. Imagine what we have now:
# yum repolist
repo id repo name
status
epel Extra Packages for Enterprise Linux 6 -
x86_64 9,494
katello Katello Stable
321
katello-candlepin An open source entitlement management
system. 9
katello-foreman Foreman Community Releases
94
katello-pulp Pulp Community Releases
40
pulp-v2-beta Pulp v2 Beta Builds
43
rhel-6-server-optional-rpms Red Hat Enterprise Linux 6 Server -
Optional (RPMs) 6,204
rhel-6-server-rpms Red Hat Enterprise Linux 6 Server
(RPMs) 10,858
repolist: 27,063
becomes:
# yum repolist
Loaded plugins: product-id, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
repo id repo name
status
6b57f9bb-5c70-4325-8ca8-7afbc9e0b8b6 Extra Packages for Enterprise
Linux 6 - x86_64 9,494
75c844e1-05e9-43e4-88c6-3633a665530d Katello Stable
321
0acb7ac5-3af5-400b-989f-8adee8ff0c15 An open source entitlement
management system. 9
a8e4a299-db78-46b0-8c6c-e4d0e44687e7 Foreman Community Releases
94
f0090bc4-360c-4161-a704-f32ccced1aef Pulp Community Releases
40
6ed3ac15-443e-4682-b988-9ac3890d5fcb Pulp v2 Beta Builds
43
6ed3ac15-443e-4682-b988-9ac3890d5fcb Red Hat Enterprise Linux 6 Server
- Optional (RPMs) 6,204
50864525-71b8-4edc-aeee-8ddf0f389fba Red Hat Enterprise Linux 6 Server
(RPMs) 10,858
repolist: 27,063
and your yum config which looks like:
[rhel-6-server-rhui-supplementary-source-rpms]
name = Red Hat Enterprise Linux 6 Server - Supplementary from RHUI
(Source RPMs)
baseurl =
https://katello1.example.com/pulp/repos/ACME_Corporation/DEV/custom/Product1/repo1
enabled = 0
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
sslverify = 1
sslcacert = /etc/rhsm/ca/redhat-uep.pem
sslclientkey = /etc/pki/entitlement/7395486864459310314-key.pem
sslclientcert = /etc/pki/entitlement/7395486864459310314.pem
metadata_expire = 86400
becomes:
[391161f3-e969-4158-82c6-36662c3c3e84]
name = Red Hat Enterprise Linux 6 Server - Supplementary from RHUI
(Source RPMs)
baseurl =
https://katello1.example.com/pulp/repos/ACME_Corporation/DEV/custom/Product1/391161f3-e969-4158-82c6-36662c3c3e84
enabled = 0
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
sslverify = 1
sslcacert = /etc/rhsm/ca/redhat-uep.pem
sslclientkey = /etc/pki/entitlement/7395486864459310314-key.pem
sslclientcert = /etc/pki/entitlement/7395486864459310314.pem
metadata_expire = 86400
you lose a ton of readability from a sysadmin's perspective
Mike
More information about the katello-devel
mailing list