Closed Bug 1173106 Opened 9 years ago Closed 9 years ago

[Contacts][NGA] Move contacts.Matcher to it own Object.

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-master fixed)

RESOLVED FIXED
NGA S2 (12Jun)
Tracking Status
b2g-master --- fixed

People

(Reporter: borjasalguero, Assigned: borjasalguero)

References

Details

(Whiteboard: [NG Gaia Contacts])

Attachments

(1 file)

46 bytes, text/x-github-pull-request
arcturus
: review+
Details | Review
Remove dependencies from contacts. 'Matcher' must be a separate object from 'contacts.js'.
Blocks: 1169191
Whiteboard: [NG Gaia Contacts]
Target Milestone: --- → NGA S2 (12Jun)
Assignee: nobody → borja.bugzilla
Status: NEW → ASSIGNED
Attached file Pull Request
Comment on attachment 8617873 [details] [review]
Pull Request

Let's start removing all dependencies from 'contacts.js'! Francisco, could you take a look? Thanks!
Attachment #8617873 - Flags: review?(francisco)
Hei Borja,

really good patch, I like the idea to remove the `contacts` namespace. Should we keep everything, both new classes Matcher and MatcheObj exported from the same file?

So we won't need to read another file (saving some time), the file `contacts_matcher.js` could export both.

What do you think?
Flags: needinfo?(borja.bugzilla)
In this case I would have one '.js' file per 'object' exported. It's tough to search in the code if a '.js' file is exporting more than one Object at the same time.
I've found that MatcherObj is needed in 'global_contacts_data.js', and that's why I've separated it in a different file (my first approach was exporting just a 'Matcher').
Flags: needinfo?(borja.bugzilla)
After talking with Francisco, we are going to remove 'GlobalContactsData', so no 'MatcherObj' is needed out of the 'Matcher' object. I've updated the patch with this, so now it's ready to be reviewed! :)
Comment on attachment 8617873 [details] [review]
Pull Request

Tested on the phone and looking great.

Thanks Borja.
Attachment #8617873 - Flags: review?(francisco) → review+
Keywords: checkin-needed
Thanks Francisco!
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Keywords: checkin-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: