Closed
Bug 1040881
Opened 12 years ago
Closed 12 years ago
Searching doesn't work on contacts with middle names
Categories
(Firefox OS Graveyard :: Gaia::Contacts, defect)
Firefox OS Graveyard
Gaia::Contacts
Tracking
(b2g-v2.0 affected)
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| b2g-v2.0 | --- | affected |
People
(Reporter: khuey, Assigned: hola)
References
Details
(Whiteboard: [2.0-flame-test-run-3])
Attachments
(1 file)
If you have a contact with the name "A B C" and type "A C" the search will fail to find it. Importing contacts from Facebook tends to drag in a fair number middle names.
Comment 1•12 years ago
|
||
Does indexedDB support fulltext search?
Comment 2•12 years ago
|
||
No it doesn't.
Right now the search in contacts is based on DOM, since we don't have all the indexes to search for (org, etc.) and also to perform substring matching
The components added to the search string are:
givenName
familyName
tel
org
email
Updated•12 years ago
|
QA Whiteboard: [QAnalyst-Triage?]
status-b2g-v2.0:
--- → affected
Flags: needinfo?(ktucker)
Whiteboard: [2.0-flame-test-run-3]
Updated•12 years ago
|
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(ktucker)
Comment 4•12 years ago
|
||
QA Wanted for branch checks.
QA Whiteboard: [QAnalyst-Triage+]
Keywords: qawanted
Updated•12 years ago
|
QA Contact: jmercado
Comment 5•12 years ago
|
||
(In reply to Jason Smith [:jsmith] from comment #4)
> QA Wanted for branch checks.
This was never implemented.
Comment 6•12 years ago
|
||
(In reply to Gregor Wagner [:gwagner] from comment #5)
> (In reply to Jason Smith [:jsmith] from comment #4)
> > QA Wanted for branch checks.
>
> This was never implemented.
Yes, search in contacts, actually is happening via DOM reg exp matching (yes gods of programming punish us for doing that), since the API couldn't implement all the search combinations we wanted.
Updated•12 years ago
|
Assignee: nobody → hola
Flags: needinfo?(hola)
| Assignee | ||
Comment 7•12 years ago
|
||
I fixed it by splitting the search terms and doing a regexp search for each of them.
Attachment #8468338 -
Flags: review?(francisco)
Comment 8•12 years ago
|
||
Comment on attachment 8468338 [details]
Pull request #22560
I've tried in the phone and works perfectly.
Not granting the review since I left a couple of suggestions in the pull request hat will be pretty easy to tackle.
Thanks.
(BTW, I'll be on PTO till August 14th, if I'm not available you can forward the review to Jose)
Attachment #8468338 -
Flags: review?(francisco)
| Assignee | ||
Updated•12 years ago
|
Attachment #8468338 -
Flags: review?(jmcf)
Comment 9•12 years ago
|
||
Comment on attachment 8468338 [details]
Pull request #22560
thanks Adrian.
Attachment #8468338 -
Flags: review?(jmcf) → review+
Comment 10•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•