Closed
Bug 976990
Opened 11 years ago
Closed 10 years ago
[Sora][Call Log] Contact's name still display in call log after delete the contact from phonebook.
Categories
(Firefox OS Graveyard :: Gaia::Dialer, defect, P1)
Firefox OS Graveyard
Gaia::Dialer
Tracking
(tracking-b2g:+, b2g-v1.4 affected, b2g-v2.0 affected, b2g-v2.1 affected, b2g-v2.2 fixed, b2g-master verified)
People
(Reporter: sync-1, Assigned: thills)
References
Details
(Keywords: regression, Whiteboard: [planned-sprint c=3][partner-blocker])
Attachments
(4 files, 1 obsolete file)
Firefox OS v1.3 Mozilla build ID: 20140208004002 Created an attachment (id=648761) Logcat for this PR DEFECT DESCRIPTION: Contact's name still display in call log after delete the contact from phonebook. REPRODUCING PROCEDURES: Precondition: There is a number in call log which not associated to any contact. 1. Idle -> Dialer -> Enter call log interface -> Tap the number in call log -> Create new contact -> Input name -> done 2. Delete the contact -> Back to call log interface -> Contact's name still display in call log(K.O) EXPECTED BEHAVIOUR: It should diplay the phone number in call log. ASSOCIATE SPECIFICATION: TEST PLAN REFERENCE: TOOLS AND PLATFORMS USED: USER IMPACT: REPRODUCING RATE: 100% For FT PR, PleaseInsert list reference mobile's behavior: It is OK on Beetle Lite FF. If you have any questions,please dial 7526.
Updated•10 years ago
|
Assignee: nobody → thills
status-b2g-v1.4:
--- → affected
status-b2g-v2.0:
--- → affected
status-b2g-v2.1:
--- → affected
status-b2g-v2.2:
--- → affected
Whiteboard: [planned-sprint c=3][partner-blocker]
Target Milestone: --- → 2.1 S8 (7Nov)
Comment 6•10 years ago
|
||
Dear I think below code occur some errors gaia/apps/communication/dialer/js/call_log.js =================================================================== this._updateContact(log, logInfo.phoneNumber, contactId, i === 0); =================================================================== Because of "i === 0" condition, Dialer doesn't save updated contact information. Please check this code
Comment 7•10 years ago
|
||
Tamara, will be be helping resolve this given the feedback in https://bugzilla.mozilla.org/show_bug.cgi?id=1083124 ?
tracking-b2g:
--- → +
Flags: needinfo?(thills)
Comment 8•10 years ago
|
||
(In reply to bhavana bajaj [:bajaj] from comment #7) > Tamara, will be be helping resolve this given the feedback in > https://bugzilla.mozilla.org/show_bug.cgi?id=1083124 ? Yes, it is targeted to be done in this sprint. I updated the tracking flags of this bug once bug 1083124 was marked as a duplicate.
Flags: needinfo?(thills)
Assignee | ||
Updated•10 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 11•10 years ago
|
||
Hi Doug, This is a WIP. It does not address bug 903345. I believe there is something different going on there which I will continue to look into. Thanks, -tamara
Attachment #8518250 -
Flags: feedback?(drs.bugzilla)
Comment 12•10 years ago
|
||
Comment on attachment 8518250 [details] [diff] [review] WIP for feedback Review of attachment 8518250 [details] [diff] [review]: ----------------------------------------------------------------- I don't know off the top of my head what the correct fix is here, and I'd have to do more investigation myself to say. But I don't think that this is it. If your findings are different than mine, please let me know and we can talk about it more. At the very least, we should understand better why this fixes the issue. ::: apps/communications/dialer/js/call_log.js @@ +891,5 @@ > + // multiple call log entries with the same TN in list. The first > + // call in removeGroupContactInfo will return the number of entries with > + // the contacts id, but the subsequent calls will return 0 and hence > + // don't get their headers updated by the following function. > + self.updateContactInfo(log); This callback is only called once with the correct number of results. I'm not sure I understand why we need this change. Could you explain how you were able to get it to fire more than once? @@ +948,5 @@ > > + //This change seems to fix the issue reported in 976990. If this is set > + //to 0, then the updates only happen for the first item in the list. > + this._updateContact(log, logInfo.phoneNumber, contactId, > + (reason === 'create' || reason === 'remove')); I don't see how this could fix the issue. This actually makes the criteria for calling `CallLog.updateContactInfo()` more restrictive.
Attachment #8518250 -
Flags: feedback?(drs.bugzilla) → feedback-
Updated•10 years ago
|
Whiteboard: [planned-sprint c=3][partner-blocker] → [planned-sprint c=3][in-sprint=v2.1-S8][partner-blocker]
Target Milestone: 2.1 S8 (7Nov) → 2.1 S9 (21Nov)
Assignee | ||
Comment 13•10 years ago
|
||
Hi Doug, The key change is that on a create, it updates the database once only in the case where there are multiple call groups with the same phoneNumber. The initial code was updating only the first record in the DOM (hence it didn't work for anything after the first log item element).
Attachment #8518250 -
Attachment is obsolete: true
Attachment #8524277 -
Flags: feedback?(drs.bugzilla)
Comment 14•10 years ago
|
||
Comment on attachment 8524277 [details] [diff] [review] 976990v2.diff Review of attachment 8524277 [details] [diff] [review]: ----------------------------------------------------------------- The general approach seems reasonable to me, but this doesn't work in all cases. For example, a contact with a non-exact-matching phone number doesn't get added/removed from the call log correctly. An example of this is 663-911-7347 in the call log, 6639117347 on the contact. One idea that I have right now is to separate out the DB deletion logic and the rest of the call log presentation code. This code is very confusing because of this strange flow. I will think more about this and come back here.
Attachment #8524277 -
Flags: feedback?(drs.bugzilla) → feedback+
Assignee | ||
Comment 16•10 years ago
|
||
Comment on attachment 8524277 [details] [diff] [review] 976990v2.diff Hi Etienne, Would you be able to feedback this patch? As Doug points out, this is not solving some of the existing matching problems, but just handling the case mentioned where a contact is created, and later deleted and the change is not reflected properly. Let me know if you have any questions. Thanks, -tamara
Attachment #8524277 -
Flags: feedback?(etienne)
Comment 17•10 years ago
|
||
Comment on attachment 8524277 [details] [diff] [review] 976990v2.diff Review of attachment 8524277 [details] [diff] [review]: ----------------------------------------------------------------- Talked to Fernando, his feedback will be better than mine :)
Attachment #8524277 -
Flags: feedback?(etienne) → feedback?(ferjmoreno)
Comment 18•10 years ago
|
||
Comment on attachment 8524277 [details] [diff] [review] 976990v2.diff Review of attachment 8524277 [details] [diff] [review]: ----------------------------------------------------------------- Thank you Tamara. Nice catch. The approach looks good to me as well. ::: apps/communications/dialer/js/call_log.js @@ +10,5 @@ > _headersInterval: null, > _empty: true, > _dbupgrading: false, > _contactCache: true, > + _updateSet:null, Does this need to be global?
Updated•10 years ago
|
Attachment #8524277 -
Flags: feedback?(ferjmoreno) → feedback+
Updated•10 years ago
|
Flags: needinfo?(drs.bugzilla)
Whiteboard: [planned-sprint c=3][in-sprint=v2.1-S8][partner-blocker] → [planned-sprint c=3][in-sprint=v2.1-S9][partner-blocker]
Target Milestone: 2.1 S9 (21Nov) → 2.2 S1 (5dec)
Updated•10 years ago
|
Whiteboard: [planned-sprint c=3][in-sprint=v2.1-S9][partner-blocker] → [planned-sprint c=3][partner-blocker]
Target Milestone: 2.2 S1 (5dec) → 2.2 S4 (23jan)
Assignee | ||
Comment 20•10 years ago
|
||
Attachment #8553953 -
Flags: review?(drs.bugzilla)
Updated•10 years ago
|
Target Milestone: 2.2 S4 (23jan) → 2.2 S5 (6feb)
Comment 21•10 years ago
|
||
Comment on attachment 8553953 [details] [review] PR for fix Pretty good. I left some comments on the PR.
Attachment #8553953 -
Flags: review?(drs.bugzilla) → review-
Updated•10 years ago
|
Target Milestone: 2.2 S5 (6feb) → 2.2 S7 (6mar)
Comment 22•10 years ago
|
||
Note that this is probably fixed now that bug 1112577 landed.
Keywords: verifyme
Comment 23•10 years ago
|
||
Tamara, I've tried reproducing this after landing bug 1112577 but couldn't. Could you double-check if this has been truly solved and close the bug if it has?
Flags: needinfo?(thills)
Assignee | ||
Comment 24•10 years ago
|
||
I tested and this is fixed by bug 1112577.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: needinfo?(thills)
Resolution: --- → FIXED
Updated•10 years ago
|
status-b2g-master:
--- → fixed
Comment 26•10 years ago
|
||
Verified against master: Build ID 20150219160225 Gaia Revision 0d9a825dd27ed63f877d5140a08327cc8f91ec74 Gaia Date 2015-02-19 19:55:26 Gecko Revision https://hg.mozilla.org/mozilla-central/rev/51458a066fda Gecko Version 38.0a1 Device Name flame Firmware(Release) 4.4.2 Firmware(Incremental) eng.cltbld.20150219.193017 Firmware Date Thu Feb 19 19:30:28 EST 2015 Bootloader L1TC000118D0
Status: RESOLVED → VERIFIED
Updated•9 years ago
|
blocking-b2g: backlog → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•