Closed Bug 870359 Opened 12 years ago Closed 12 years ago

(Follow-up) Add object store to RecentsDBManager database to host groups of calls

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:leo+, b2g18 fixed)

RESOLVED FIXED
blocking-b2g leo+
Tracking Status
b2g18 --- fixed

People

(Reporter: ferjm, Assigned: ferjm)

References

Details

Attachments

(1 file)

Follow up of bug 847404. 

We need to fix what was reported in Bug 854869 and add some modifications agreed during Madrid work week (like morphing the primary key of the groups object store from string to array).

We will not be adding the contacts information yet. That will be tracked by bug 862385.
Assignee: nobody → ferjmoreno
Blocks: 847406
blocking-b2g: --- → leo?
Attachment #747420 - Flags: review?(etienne)
blocking-b2g: leo? → leo+
Blocks a blocker.
Comment on attachment 747420 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/9643

Main issues:
- the binding issue in the upgrade code (!)
- the failing tests (looks like fixing the upgrade helps ;))
- |recents_db.js| is individually loaded, so we have no guarantee than |utils.js| (lazy loaded by |recents.js|) will be there. We need to do without the dependency or load it properly.
- structured groupId stored in an array
Attachment #747420 - Flags: review?(etienne) → review-
Comment on attachment 747420 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/9643

Etienne, I've just updated the PR to address your review comments. 

We expose now objects of this kind:

{ id: <String>,
  date: <Date>,
  number: <String>,
  type: <String>,
  status: <String>,
  lastEntryDate: <Date>,
  retryCount: <Number> }

so consumers (basically... the calllog UI) doesn't need to deal with the array-as-id.

I've also decided not to load Utils just for that simple function.
Attachment #747420 - Flags: review- → review?(etienne)
Comment on attachment 747420 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/9643

Awesome, r=me with the typo in the tests fixed + the nits
Attachment #747420 - Flags: review?(etienne) → review+
Thanks Etienne!

https://github.com/mozilla-b2g/gaia/commit/3479338df4aa24ff99df753d9fb88807c85f2589
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Uplifted 3479338df4aa24ff99df753d9fb88807c85f2589 to:
v1-train: 45f1d601a9f8925cf054d6b18bbb60811057de9d
Flags: in-moztrap-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: