After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 727741 - When a contact name isn't set, use another piece of information as the name
When a contact name isn't set, use another piece of information as the name
Status: RESOLVED FIXED
Product: gnome-contacts
Classification: Core
Component: general
3.10.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Contacts maintainer(s)
GNOME Contacts maintainer(s)
available
: 675650 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-04-07 12:30 UTC by Allan Day
Modified: 2018-01-07 11:57 UTC
See Also:
GNOME target: ---
GNOME version: 3.9/3.10



Description Allan Day 2014-04-07 12:30:32 UTC
I have quite a few contacts that are just a phone number or email address. These appear blank in the contact list.

If there isn't a name assigned to the contact, we should use a contact detail as the name in the list and the contact pane (this data shouldn't be inserted into these fields, and should be used for display only).

The following details can be used as stand-in contact names. They are listed roughly in order of preference, so we can select one if there are multiple details but no name:

 * Nickname
 * Email
 * Website
 * Phone number
 * Address
Comment 1 David King 2014-04-30 17:10:46 UTC
*** Bug 675650 has been marked as a duplicate of this bug. ***
Comment 2 Erick Perez Castellanos 2014-04-30 17:22:10 UTC
The interface we have for adding Contacts don work for Company, eg: when I want
to add a Contact for Apple Inc. the same way the the iPhone does.

Today, I realized some contacts handlers has a "File as" combo when you set if
the contact youŕe entering is a Company, or a person or something else. Maybe
we can have something like this.
Comment 3 Erick Perez Castellanos 2014-06-02 17:55:28 UTC
(In reply to comment #0)
> I have quite a few contacts that are just a phone number or email address.
> These appear blank in the contact list.
> 
> If there isn't a name assigned to the contact, we should use a contact detail
> as the name in the list and the contact pane (this data shouldn't be inserted
> into these fields, and should be used for display only).
> 
> The following details can be used as stand-in contact names. They are listed
> roughly in order of preference, so we can select one if there are multiple
> details but no name:
> 
>  * Nickname
>  * Email
>  * Website
>  * Phone number
>  * Address

This should work, we use those details as name for a contact.

I will need some testing on 3.12.x and some data if it still happens
The contact data could be get using 'folks-inspect' command.
Comment 4 Niels De Graef 2018-01-07 11:57:28 UTC
We now use the Individual's `display_name`-property, which is automatically kept up to date (and is cached as well). This also includes the alias-property that Erick mentioned. Originally, it did not include the phone number, but I made bug 792198 to add that in folks (which has already landed on master).