From 4bd336cedc757f1523dfd224e8125bd8c6455691 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 15 Feb 2012 13:57:50 -0800 Subject: [PATCH] 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 --- .../controller/main/PhabricatorDirectoryMainController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/applications/directory/controller/main/PhabricatorDirectoryMainController.php b/src/applications/directory/controller/main/PhabricatorDirectoryMainController.php index 8d49b95ecd..19534fdacf 100644 --- a/src/applications/directory/controller/main/PhabricatorDirectoryMainController.php +++ b/src/applications/directory/controller/main/PhabricatorDirectoryMainController.php @@ -200,6 +200,7 @@ class PhabricatorDirectoryMainController $task_query = new ManiphestTaskQuery(); $task_query->withStatus(ManiphestTaskQuery::STATUS_OPEN); + $task_query->setGroupBy(ManiphestTaskQuery::GROUP_PRIORITY); $task_query->withOwners(array($user_phid)); $task_query->setCalculateRows(true); $task_query->setLimit(10);