Closed Bug 931083 Opened 11 years ago Closed 10 years ago

[Messages][Drafts] Storage

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 936646

People

(Reporter: julienw, Assigned: rwaldron)

References

Details

In this bug, we'll do:

* Draft constructor
* Draft array
* storage
* tests

As for the technical requirements:
* we need to save both sms and mms
* we can have several drafts for one thread
* we can have "new message" drafts, with only recipients and no body, with a body and no recipients, with both recipients and body
* we need to retrieve all drafts for one thread
* we need to retrieve all threads that have a draft
* we need to retrieve all "new message" drafts
* we need to order the thread drafts per timestamp
* we need to order a list of thread drafts + thread messages per timestamp
* we need to order a list of threads (with or without drafts) + new message drafts per timestamp
* we need to know if the most recent message in a thread is a draft or a "normal" message (ie sent or received). That most recent message (draft or not draft) defines the timestamp for a thread

I'd add, even if we don't need it now:
* we need to get a list of drafts with a timestamp range

Maybe we need to start doing part of bug 898364, which is definitely not easy.
blocking-b2g: --- → 1.3?
Blocks: 931091
Blocks: 931095
Blocks: 931096
I'm thinking, maybe all the "get" methods could be done in bug 931095 instead of here.

This bug could be more about creating the stores and saving. But still we need to know all the use cases to properly save :)
Taking for planning purposes
Assignee: nobody → waldron.rick
1.3+ for a committed 1.3 user story
blocking-b2g: 1.3? → 1.3+
Assignee: waldron.rick → evelyn
Summary: [Messages][Drafts] 1 - technical infrastucture → [Messages][Drafts] 1 - Storage
Summary: [Messages][Drafts] 1 - Storage → [Messages][Drafts] Storage
Depends on: 936646
Target Milestone: --- → 1.3 Sprint 5 - 11/22
Depends on: 936641
Target Milestone: 1.3 Sprint 5 - 11/22 → 1.3 Sprint 6 - 12/6
Blocks: 943395
No longer blocks: 943395
Depends on: 943395
blocking-b2g: 1.3+ → 1.4?
Target Milestone: 1.3 Sprint 6 - 12/6 → ---
Assignee: evelyn → waldron.rick
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
blocking-b2g: 1.4? → ---
You need to log in before you can comment on or make changes to this bug.