Closed Bug 1109003 Opened 10 years ago Closed 6 years ago

[Loop] Changing detail contact with/without MCC in Contact App, contact names are not updated properly in call log

Categories

(Firefox OS Graveyard :: Gaia::Loop, defect)

x86
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(tracking-b2g:backlog)

RESOLVED WONTFIX
tracking-b2g backlog

People

(Reporter: javier.deprado, Unassigned)

References

Details

(Whiteboard: [mobile app][regression-1.1][Room1.1.1_Regression2])

Attachments

(1 file)

STR:
1.- DeviceA and DeviceB logged in Loop with MSISDN with NumA and NumB respectively.
2.- Register NumA without MCC in DeviceB's contact app as NumAWithoutMCC.
3.- Make a call from DeviceB's contact app to DeviceA (NumAWithoutMCC).
4.- DeviceA receives a call with MCC (+34....), and is added to DeviceA's call log.
5.- From DeviceA's call log, create new contact as NumBWithMCC
6.- Make again a call from DeviceB's contact app to DeviceA (NumAWithoutMCC), and check in  DeviceA's call log, there are two entries with NumBWithMcc name. (Ok)
7.- Modify in DeviceA, from contact app: Contact number from +34number to number (without MCC), as its name, from NumBWithMCC to NumBWithoutMCC.
8.- Open loop app in Device A and check in call log, two entries with num "+34number" (NOK: instead of Contact Name)
9.- Make again a call from DeviceB's contact app to DeviceA (NumAWithoutMCC), and check in  DeviceA's call log, there is a new entry with contact name (NumBWithoutMC).

EXPECTED RESULT: 
*.- In step 8, both call log entries should be NumBWithoutMCC instead of literal number (+34number).
*.- In step 9, all three call log entries should be NumBWithoutMCC. (see attachment)
Attached image 2014-12-09-10-19-45.png
ENV:
v1.1, v 4212078
FireE comercial build.
Javier, if you kill Loop and launch it again, is the call log properly updated?
Flags: needinfo?(javier.deprado)
No. The call log remains the same, even killing loop app, leaving (logout) from loop, or reseting de device.
Flags: needinfo?(javier.deprado)
Thanks Javier, I've just tested it too and after killing and launching Loop again, the result is the same.

I think that this is corner case as users are not going to be removing the CC specially if they already have included the number in the Agenda with the CC before. Anyway, we will have a look to see if the fix is not very complex to include it in next release.
Tested again on ENV:
Flame
v2.0
Gecko-5f9dc54
Gaia-31d6c94
Loop master version, commit 51a04dd
Whiteboard: [mobile app][regression-1.1] → [mobile app][regression-1.1][Room1.1.1_Regression2]
My two cents. It is very difficult to solve this issue because we need to normalize telephone numbers in our logic (such as callLog as db). Currently, our algorithm is aware when a moz contact has been updated. At that moment, we search in our callLog all records that have the same contactId. For each one of them, we have to check if there are matching between identities for the moz contact and records which appear in the callLog. The matching is performed by means of using the "equal" operation (+34645545454 !== 645545454). We cannot use the "contain" operation because "+34 645545454" contains "4", "54" or ""+61 645545454" and they are not the same phone number. The only way to get a proper solution is using normalization for phone numbers. And it seems a strong and long work.
[Tracking Requested - why for this release]:
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.

Attachment

General

Created:
Updated:
Size: