Closed Bug 898345 Opened 11 years ago Closed 11 years ago

Contacts matcher in both passive an active mode must support matching by the name field

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(blocking-b2g:koi+)

RESOLVED FIXED
blocking-b2g koi+

People

(Reporter: jmcf, Assigned: jmcf)

References

Details

(Whiteboard: [u=commsapps-user c=contacts p=0])

Attachments

(1 file)

This is needed specially for SIM imported Contacts. The proposed solution should address the following test cases:

in active mode: 

var existingSimContact = {
          id: '1B',
          category: ['sim'],
          name: ['Juan Ramón del SIM'],
          givenName: ['Juan Ramón del SIM'],
          tel: [{
            type: ['home'],
            value: '676767671'
          }],
          email: [{
            type: ['personal'],
            value: 'jj@jj.com'
          }]
        };

        var incomingContact = {
          id: '678',
          givenName: ['Juan Ramon'],
          familyName: ['del SIM'],
          name: ['Juan Ramón del SIM']
        };

var simObj = {
        id: '678',
        category: ['sim'],
        name: ['Juan Ramón del SIM'],
        givenName: ['Juan Ramón del SIM']
      };

      var existingContact = {
        id: '1B',
        givenName: ['Juan Ramon'],
        familyName: ['del SIM'],
        name: ['Juan Ramón del SIM'],
        tel: [{
          type: ['home'],
          value: '676767671'
        }],
        email: [{
          type: ['personal'],
          value: 'jj@jj.com'
        }]
      };

in passive mode:

var simObj = {
        id: '678',
        category: ['sim'],
        name: ['Juan Ramón del SIM'],
        givenName: ['Juan Ramón del SIM'],
        tel: [{
          type: ['home'],
          value: '676767671'
        }]
      };

      var existingContact = {
        id: '1B',
        givenName: ['Juan Ramon'],
        familyName: ['del SIM'],
        name: ['Juan Ramón del SIM'],
        tel: [{
          type: ['home'],
          value: '676767671'
        }],
        email: [{
          type: ['personal'],
          value: 'jj@jj.com'
        }]
      };

var existingSimContact = {
          id: '1B',
          category: ['sim'],
          name: ['Juan Ramón del SIM'],
          givenName: ['Juan Ramón del SIM'],
          tel: [{
            type: ['home'],
            value: '676767671'
          }],
          email: [{
            type: ['personal'],
            value: 'jj@jj.com'
          }]
        };

        var incomingContact = {
          id: '678',
          givenName: ['Juan Ramon'],
          familyName: ['del SIM'],
          name: ['Juan Ramón del SIM'],
          tel: [{
            type: ['home'],
            value: '676767671'
          }]
        };
blocking-b2g: --- → koi?
Depends on: 898337
Blocks: 889756
Attached file Pointer to GH PR 11185
Proposed patch for Gaia but for working 100% it needs bug 893337 fixed
Attachment #781625 - Flags: review?(crdlc)
Comment on attachment 781625 [details]
Pointer to GH PR 11185

Thanks for your work
Attachment #781625 - Flags: review?(crdlc) → review+
Whiteboard: [u=commsapps-user c=contacts p=0]
https://github.com/mozilla-b2g/gaia/commit/65a3292841c33f59ceeace8d37817c5093a09b2b
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
blocking-b2g: koi? → koi+
Jose Manual, now that bug 898337 is fixed, do you need to do more work to use it in the Contacts app? If yes, let's file a new bug for this work!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: