1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 14:00:56 +01:00

Add a "group by priority" to the homepage revision query

Summary: The effect of this is just to order tasks by (priority, modified)
instead of (modified), i.e. in the same default order as Maniphest, so the top
10 tasks here are the top 10 tasks in your assigned list.

Test Plan: Looked at "Assigned Tasks" on the homepage.

Reviewers: fratrik, btrahan

Reviewed By: btrahan

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D1621
This commit is contained in:
epriestley 2012-02-15 13:57:50 -08:00
parent eb4256b97d
commit 4bd336cedc

View file

@ -200,6 +200,7 @@ class PhabricatorDirectoryMainController
$task_query = new ManiphestTaskQuery(); $task_query = new ManiphestTaskQuery();
$task_query->withStatus(ManiphestTaskQuery::STATUS_OPEN); $task_query->withStatus(ManiphestTaskQuery::STATUS_OPEN);
$task_query->setGroupBy(ManiphestTaskQuery::GROUP_PRIORITY);
$task_query->withOwners(array($user_phid)); $task_query->withOwners(array($user_phid));
$task_query->setCalculateRows(true); $task_query->setCalculateRows(true);
$task_query->setLimit(10); $task_query->setLimit(10);