mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 12:00:55 +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:
parent
eb4256b97d
commit
4bd336cedc
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue