Page MenuHomePhabricator

Order Calendar events by start date in the list view
Closed, ResolvedPublic

Description

Events in Calendar lists are currently always ordered by ID descending. In particular, this means that events in the list view are not shown in the order they occur (soonest event first), but in the order they were created (newest first), which is surprising and counterintuitive for an event listing.

We should:

  • Support ordering by dateFrom, ascending ("Soonest First").
  • Make this the default (or maybe only) order for list views.

To do this:

  • PhabricatorProjectQuery is a reasonable example of a relatively simple Query which includes non-default ordering.
  • Implement getOrderableColumns(), getPagingValueMap(), and getDefaultOrderVector(), using start instead of name.

Revisions and Commits

Restricted Differential Revision

Event Timeline

epriestley assigned this task to lpriestley.
epriestley raised the priority of this task from to Normal.
epriestley updated the task description. (Show Details)
epriestley added a project: Calendar.
epriestley added a subscriber: epriestley.
lpriestley added a revision: Restricted Differential Revision.May 21 2015, 5:27 PM
lpriestley closed this task as Resolved by committing Restricted Diffusion Commit.May 22 2015, 12:10 AM
lpriestley added a commit: Restricted Diffusion Commit.