Closed Bug 1189595 Opened 9 years ago Closed 6 years ago

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

Categories

(Firefox OS Graveyard :: Gaia::E-Mail, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: asuth, Unassigned)

Details

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.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.