Closed
Bug 769347
Opened 13 years ago
Closed 13 years ago
B2G SMS: Messages returned from database should be sorted by time stamp.
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: steveck, Assigned: vicamo)
References
Details
Attachments
(2 files, 1 obsolete file)
|
45.41 KB,
image/jpeg
|
Details | |
|
1.90 KB,
patch
|
philikon
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Reporter | ||
Comment 1•13 years ago
|
||
This issue is also raised in github issue: https://github.com/mozilla-b2g/gaia/issues/2053#preview_bucket_971
| Reporter | ||
Comment 2•13 years ago
|
||
| Assignee | ||
Comment 3•13 years ago
|
||
Inside SmsDatabaseService.keyIntersection(), the order of final results is the order of last keys array filtered. This patch always filters keys[FILTER_TIMESTAMP], so it should be always ordered by timestamp.
Comment 4•13 years ago
|
||
(In reply to Vicamo Yang [:vicamo] from comment #3)
> Inside SmsDatabaseService.keyIntersection(), the order of final results is
> the order of last keys array filtered. This patch always filters
> keys[FILTER_TIMESTAMP], so it should be always ordered by timestamp.
Good hack. Can you add a comment explaining this side-effect? r=me with that.
| Assignee | ||
Comment 5•13 years ago
|
||
Address comment #4 from Philipp. Thank you.
Attachment #637592 -
Attachment is obsolete: true
Attachment #638965 -
Flags: review?(philipp)
| Assignee | ||
Comment 6•13 years ago
|
||
Gaia fix is ready here(https://github.com/vicamo/gaia/tree/bugzilla/769347/master). I'll send a pull request once this is landed.
Updated•13 years ago
|
Attachment #638965 -
Flags: review?(philipp) → review+
| Assignee | ||
Comment 7•13 years ago
|
||
Assignee: nobody → vyang
Target Milestone: --- → mozilla16
Comment 8•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•