Closed
Bug 936639
Opened 11 years ago
Closed 11 years ago
[Messages][Drafts] Create Drafts object + tests
Categories
(Firefox OS Graveyard :: Gaia::SMS, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
1.3 Sprint 5 - 11/22
People
(Reporter: evhan55, Assigned: evhan55)
References
Details
Attachments
(1 file)
Create a Drafts object: * contains a list of draft objects * length * push * filter * forEach * delete
Assignee | ||
Updated•11 years ago
|
Blocks: messaging-drafts, 931091
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → evelyn
Updated•11 years ago
|
Target Milestone: --- → 1.3 Sprint 5 - 11/22
Updated•11 years ago
|
Component: Gaia → Gaia::SMS
Assignee | ||
Comment 2•11 years ago
|
||
- Drafts Singleton - Adds, deletes, clears Draft objects - Loads and stores Draft objects from storage - Fetches all Draft objects for a thread id - Drafts.List object - Array-list holder for Draft objects - has readonly accessor for length - has forEach to run callback on all contained Draft objects - Draft object - standalone class to describe fields for a Draft instance - Tests - Drafts: unit tests for adding, deletion, clearing, storing, loading, fetching by id - Draft.List: unit tests for length, forEach - Draft: no unit tests yet
Attachment #833097 -
Flags: review?(waldron.rick)
Comment 3•11 years ago
|
||
Comment on attachment 833097 [details] [review] https://github.com/mozilla-b2g/gaia/pull/13756 Needs to be broken into two PRs: - Bug 936639 - Bug 931083
Attachment #833097 -
Flags: review?(waldron.rick) → review-
Updated•11 years ago
|
Summary: [Messages][Drafts] Create Drafts module/constructor + tests → [Messages][Drafts] Create Drafts object + tests
Assignee | ||
Comment 4•11 years ago
|
||
Comment on attachment 833097 [details] [review] https://github.com/mozilla-b2g/gaia/pull/13756 Resubmitting for review: Removed all storage code and put back in it's own PR. New PR comment: - Drafts Singleton - Adds, deletes, clears Draft objects - Fetches all Draft objects for a thread id - Drafts.List object - Array-like holder for Draft objects - has readonly accessor for length - has forEach to run callback on all contained Draft objects - Draft object - standalone class to describe fields for a Draft instance - Tests - Drafts: unit tests for adding, deleting, clearing, fetching by id - Draft.List: unit tests for length, forEach - Draft: no unit tests yet
Attachment #833097 -
Flags: review- → review?
Assignee | ||
Comment 5•11 years ago
|
||
New PR comment: - Drafts Singleton - Adds, deletes, clears Draft objects - Fetches all Draft objects for a thread id - Drafts.List object - Array-like holder for Draft objects - has readonly accessor for length - has forEach to run callback on all contained Draft objects - Draft object - standalone class to describe fields for a Draft instance - Tests - Drafts: unit tests for adding, deleting, clearing, fetching by id - Draft.List: unit tests for length, forEach - Draft: unit tests for new Draft from empty object and from existing Draft - Issues - Not sure if recipients should be stored as Array or String
Assignee | ||
Comment 6•11 years ago
|
||
Rick, I took your feedback from the PR and from IRC and pushed an updated commit @ Nov 15 11:28pm Eastern.
Comment 7•11 years ago
|
||
(In reply to Evelyn Eastmond [:evhan55] from comment #6) > Rick, I took your feedback from the PR and from IRC and pushed an updated > commit @ Nov 15 11:28pm Eastern. Awesome, reviewed and a few comments. I think this is likely the last round and then I will r+
Assignee | ||
Comment 8•11 years ago
|
||
Comment on attachment 833097 [details] [review] https://github.com/mozilla-b2g/gaia/pull/13756 Resubmitting for review. It's looking clean, thanks very much for all the help, I'm happy.
Attachment #833097 -
Flags: review? → review?(waldron.rick)
Comment 9•11 years ago
|
||
Comment on attachment 833097 [details] [review] https://github.com/mozilla-b2g/gaia/pull/13756 r=me
Attachment #833097 -
Flags: review?(waldron.rick) → review+
Assignee | ||
Comment 10•11 years ago
|
||
https://github.com/mozilla-b2g/gaia/commit/3519431a4775c2e0c3567b00e572a8a4fc19730c Landed on master by rwaldron
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•