Closed Bug 1170125 Opened 11 years ago Closed 11 years ago

[NGA][Contacts] Extract everything related to "mozContacts" to a separate .js file

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, 1 obsolete file)

46 bytes, text/x-github-pull-request
arcturus
: review+
Details | Review
In order to move our Contacts App to the new architecture, we are going to move all requests to the API to a well-defined .js file. This will help us to move from the current model to the one based on Threads.js in a transparent way.
Assignee: nobody → borja.bugzilla
Blocks: 1169191
Whiteboard: [NG Gaia Contacts]
Attached file Patch (obsolete) —
Hi Francisco! I've exposed a new interface in order to have the whole functionality of mozContacts in one file, having it ready for moving the app easily to Threads.js. I'll add all tests once the we confirm that the interface is the right one. Could you take a look? Thanks! :)
Attachment #8613606 - Flags: feedback?(francisco)
Comment on attachment 8613606 [details] [review] Patch Could we move the interface to use promises? The changes needed in contacts will be minimun and we will be even closer to moving tho threads.js
Attachment #8613606 - Flags: feedback?(francisco) → feedback+
After talking with Francisco, we both agreed that for not merging a huge patch, we are going to keep the 'callback' approach by now (with all tests working), and we will revisit this later on.
Attachment #8613606 - Attachment is obsolete: true
Attached file Pull Request —
Attachment #8615211 - Flags: review?(francisco)
Target Milestone: --- → NGA S2 (12Jun)
Comment on attachment 8615211 [details] [review] Pull Request Tested on the phone and working perfectly. Left some comments on gh, but one resolved we are ready to merge. Great work here!
Attachment #8615211 - Flags: review?(francisco) → review+
Thanks Francisco! All tests passed and all comments addressed. Merging!
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Flags: needinfo?(borja.bugzilla)
Resolution: FIXED → ---
Hi Kevin! After checking all jobs in "treeharder" this intermittent failure appears in some of them. I've reopened https://bugzilla.mozilla.org/show_bug.cgi?id=1079233 due to seems to be a well-known issue.
Flags: needinfo?(borja.bugzilla)
True, but it was fairly certain that this caused a perma-red. Please verify that there's no red tests in a pull request, and if not, feel free to re-land.
All tests passed, so merging!
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: