Phone numbers are stored as formatted strings and are not found when searching

Bug #1400468 reported by Pat McGowan
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Critical
Unassigned
address-book-app
Fix Released
Critical
Renato Araujo Oliveira Filho
address-book-app (Ubuntu)
Fix Released
Critical
Renato Araujo Oliveira Filho
address-book-app (Ubuntu RTM)
Fix Released
Critical
Renato Araujo Oliveira Filho

Bug Description

There are several problems:

Search currently requires the user to enter a "space" or "-" character to find matching numbers the the contacts and messaging apps.

Also depending on how the number is entered the formatting is different for example:
19995551212 is stored and displayed as "1 999-555-1212"
whereas
9995551212 is displayed as "(999) 555-1212"

There is no way for me to specify a formatted number when creating a contact so there is no real reason to store it formatted in a way we choose.
When editing a number I am presented with it formatted which is somewhat confusing, there is no "-" character available to me.

I suggest we store the raw number only and always normalize search strings to digits and special characters (like *#) only. The presentation should be considered separate from the data

Tags: ww51

Related branches

Changed in address-book-app (Ubuntu):
assignee: nobody → Renato Araujo Oliveira Filho (renatofilho)
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

drop to high sincee search is probably mainly on the name not number

Changed in address-book-app (Ubuntu):
importance: Critical → High
Changed in canonical-devices-system-image:
importance: Undecided → Critical
milestone: none → ww51-2014
status: New → Confirmed
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

consider fixing bug #1372548 at the same time

tags: added: ww51
Changed in address-book-app (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package address-book-app - 0.2+15.04.20141211-0ubuntu1

---------------
address-book-app (0.2+15.04.20141211-0ubuntu1) vivid; urgency=low

  [ Ubuntu daily release ]
  * New rebuild forced

  [ Renato Araujo Oliveira Filho ]
  * Fix phone number search to find the search term in any position of
    the field value. (LP: #1400468)
 -- Ubuntu daily release <email address hidden> Thu, 11 Dec 2014 16:27:05 +0000

Changed in address-book-app (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Bill Filler (bfiller) wrote :

This fix breaks searching by name. It no longer works to search by first name.

Changed in address-book-app:
importance: Undecided → Critical
status: New → In Progress
Changed in address-book-app (Ubuntu):
status: Fix Released → In Progress
importance: High → Critical
Changed in address-book-app:
assignee: nobody → Renato Araujo Oliveira Filho (renatofilho)
Changed in address-book-app (Ubuntu RTM):
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Renato Araujo Oliveira Filho (renatofilho)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package address-book-app - 0.2+15.04.20141215.1-0ubuntu1

---------------
address-book-app (0.2+15.04.20141215.1-0ubuntu1) vivid; urgency=low

  [ Bill Filler ]
  * fix search by name (LP: #1400468)

  [ Ubuntu daily release ]
  * New rebuild forced

  [ Renato Araujo Oliveira Filho ]
  * fix search by name (LP: #1400468)
 -- Ubuntu daily release <email address hidden> Mon, 15 Dec 2014 22:15:58 +0000

Changed in address-book-app (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package address-book-app - 0.2+15.04.20141216.6~rtm-0ubuntu1

---------------
address-book-app (0.2+15.04.20141216.6~rtm-0ubuntu1) 14.09; urgency=low

  [ Ubuntu daily release ]
  * New rebuild forced

  [ Renato Araujo Oliveira Filho ]
  * Fix phone number search to find the search term in any position of
    the field value. (LP: #1400468)
 -- Ubuntu daily release <email address hidden> Tue, 16 Dec 2014 19:36:45 +0000

Changed in address-book-app (Ubuntu RTM):
status: In Progress → Fix Released
Changed in address-book-app:
status: In Progress → Fix Released
Bill Filler (bfiller)
Changed in canonical-devices-system-image:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.