>
>
>>
>>>
>>> Katello has the concept of "labels" on some of its models. A label must be
>>> unique to an organization and contain just ascii characters. This label is
>>> basically a user definable unique ID for the given object. The reason it
>>> was introduced initially was that some of the backend services for katello
>>> could not handle special characters in names (ie. pulp wanted names to be
>>> of a certain format and katello allowed names in any language).
>>>
>>
>> Are the labels still required by back-end services now?
>
> Yes, and in the case of repos they are visible to the user on the client system so having them in a readable format (versus just a random hash/number) was deemed important.
Just curious, what about using hash/number for the url and add human
readable comment or description to the generated repo file as a comment?
Is it even possible to include the comment/description for the repo? (I
think that could (in some far future) simplify the url/path juggling in
pulp and katello.)
>
>>
>>> A side benefit of labels was that internal database row number ids were not
>>> exposed to the user: The ids used via the command line are "human
>>> readable" and sensible.
>>>
>>
>> I would prefer to show only names in CLI, or optionally DB ids. I am not
>> sure where is the benefit of hiding them, Tom?
>
> The labels are alternatives to the db ids. If the tool filled in the labels w/ a db id style (ie. a unique number) then the user wouldn't know or care about the difference, right?
I am not sure what you mean. I am maybe missing some other angle but for
me from a user perspective labels are like "crippled" names. I would
like to see full names as I've put them in the application not the
stripped down labels. If I need abstract representation I would like ids
not labels. I would guess that most of the CLI users will be sysadmins
so they should be comfortable with numerical ids.
>
>>
>>> Another benefit is that an install can be "dumped" and recreated in a new
>>> install with all IDs consistent between the two (since internal database
>>> IDs are not referenced from a user perspective).
>>>
>>
>> I would just ensure that the dump has correct numerical IDs and thath
>> they are imported again correctly. Or maybe I am missing something.
>
> I don't work with dbs that often so assumed that maintaining numerical ids across two dbs would not be easy.
I am probably missing something, but doesn't master-salve replication do
what you are describing?
>
>>
>>> The question is, should we make it a goal for all objects to support labels
>>> instead of internal numeric IDs, removing the IDs from user view?
>>>
>>>
>>
>> Personally I would remove labels if possible or hide them. The main
>> reason is that when the resource is renamed the label stays and is
>> source of confusion. If memorability of numerical IDs is problem, I
>> would replace them with some memorable string representation (like
>> Heroku app names).
>
> Labels are the memorable string representations.
Yes but they have to be filled in. I was thinking more about creating a
function to be able to generate memorable id from db id and vice-versa.
>
> Are there benefits to using actual database row numbers as the exposed id versus another representation like label?
I think less work and complexity. And possibly less confusing since they
do not have meaning so they cannot get outdated.
···
On 24.03.14 17:28, Tom McKay wrote:
> ----- Original Message -----
>> On 24.03.14 14:59, Tom McKay wrote:
–
You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.