All users were logged out of Bugzilla on October 13th, 2018

[email] Contact saving: work with contacts to use the parseName logic that can split names into familyName and givenName

RESOLVED WONTFIX

Status

RESOLVED WONTFIX
3 years ago
8 months ago

People

(Reporter: asuth, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
shared/js/contacts/import/utilities/misc.js has a parseName function that uses heuristics to split contact names into familyName and givenName components.

Right now email crams the entire name in the "givenName" field.  I would argue that contacts when servicing the { name: 'new', data: { type: 'webcontacts/contact' } } field should maybe have a heuristic that invokes parseName itself if it only receives givenName with no corresponding familyName.  However, it's not totally unreasonable to ask email to help do this.  But the utility file is part of the "self-registering global module soup" idiom, putting itself under utils.misc.

Tracking this in email for now because I haven't dupe-checked contacts yet and it seems like the kind of thing that could make sense to have an explicit bug in email even if the work is done elsewhere.

Comment 1

8 months ago
Firefox OS is not being worked on
Status: NEW → RESOLVED
Last Resolved: 8 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.