[Bugs] #1653 UNSP: jarabe.journal.model defaults to invalid order_by=-mtime
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Wed Jan 13 11:36:39 EST 2010
#1653: jarabe.journal.model defaults to invalid order_by=-mtime
------------------------------------------+---------------------------------
Reporter: sascha_silbe | Owner: tomeu
Type: defect | Status: new
Priority: Unspecified by Maintainer | Milestone: Unspecified by Release Team
Component: sugar | Version: Git as of bugdate
Severity: Trivial | Keywords:
Distribution: Unspecified | Status_field: New
------------------------------------------+---------------------------------
jarabe.journal.model.find() sets the default value of order_by to -mtime,
but the data store only recognizes +/-timestamp. Since we usually want the
most recent entry to come first +timestamp should be the default, matching
the data store default. So we can either fix it to read +timestamp or just
drop it. The result is the same in all cases; dropping it means less code
to execute, less opportunity to be wrong in the future and slightly less
data to transfer / parse.
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/1653>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list