Closed Bug 1015817 Opened 10 years ago Closed 10 years ago

[NFC][Contacts] Receiver should get only one record with multiple phone numbers when sender updated contact's phone number and shared via NFC again

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.0+)

RESOLVED WORKSFORME
2.0 S4 (20june)
blocking-b2g 2.0+

People

(Reporter: ashiue, Assigned: arcturus)

References

Details

(Whiteboard: [p=0.5])

Gaia      f3b5d74dd3428c89cab06db734c62f3c9dbb8c4d
Gecko     https://hg.mozilla.org/mozilla-central/rev/e86a0d92d174
BuildID   20140525160203
Version   32.0a1

Two phone with NFC

STR:
1. Enable NFC on both phones
2. Add a new contact(user1) on phone A
3. Tap 2 phones to share user1
4. Phone A update user1's phone number 
5. Tap 2 phones to share user1 again
6. Check what phone B receive 

Expected result:
phone B should have only one "user1" record with 2 phone numbers

Actual result:
phone B has two "user1" records with different phone number
blocking-b2g: --- → 2.0?
Michal,
Please take a look at this one.
Blocks: b2g-NFC-2.0
Flags: needinfo?(mbudzynski)
Component: NFC → Gaia::Contacts
See Also: → 1015060
ni? to Sergi as this is might be related to bug 1015094
Flags: needinfo?(mbudzynski) → needinfo?(sergi.mansilla)
triage: 2.0+
blocking-b2g: 2.0? → 2.0+
Whiteboard: [p=0.5]
There are some complex rules for the merging algorithm to determine whether 2 contacts are the same one. For example, it uses email to match them, and probably phone number.

When you create contact A, what fields are initially filled?

Cheers.
Target Milestone: --- → 2.0 S4 (20june)
Alison, can you provide Sergin with the info he is asking in comment 4?

Thanks.
Flags: needinfo?(ashiue)
Hi Sergi,

I created contact A with user name, phone, and email.
Flags: needinfo?(ashiue)
Taking the NFC bugs
Assignee: nobody → francisco
Hi,

when we do a nfc sharing, we apply merging rules based on passive merging, which means that we are pretty aggressive in the comparison to be sure we are dealing with two contacts that are the same.

Those passive rules says something like:
- If two contacts have same name and surname and both have email or phones, the fields must match to merge them.

Which means, if we have contact A with phone1 in one phone, when importing (no matter if it's NFC, SIM, etc) contact A with phone2 those will be treated as different contacts.

Taking into account those rules, that are defined to make the whole process estable, we can say this is a not valid bug, since according to our rules not having same phone number is a condition to be considered two different contacts.

Closing as worksforme since it's the desired behavior

Cheers,
F.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Flags: needinfo?(sergi.mansilla)
You need to log in before you can comment on or make changes to this bug.