@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow filtering maniphest tasks authored by agents

Summary:
Addes a button group to filter tasks by agents, non-agents or all.

Fixes T3394

Test Plan: View task list, filter by agents, filter by non agents. Make sure the correct tasks display.

Reviewers: epriestley, dctrwatson

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T3394

Differential Revision: https://secure.phabricator.com/D6328

authored by

Gareth Evans and committed by
epriestley
fde37a18 6857ffb6

+8 -2
+1 -1
src/applications/maniphest/controller/ManiphestTaskListController.php
··· 180 180 } 181 181 $form->appendChild( 182 182 id(new AphrontFormTokenizerControl()) 183 - ->setDatasource('/typeahead/common/users/') 183 + ->setDatasource('/typeahead/common/authors/') 184 184 ->setName('set_authors') 185 185 ->setLabel(pht('Authors')) 186 186 ->setValue($tokens));
+6 -1
src/applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php
··· 18 18 $need_rich_data = false; 19 19 20 20 $need_users = false; 21 + $need_agents = false; 21 22 $need_applications = false; 22 23 $need_all_users = false; 23 24 $need_lists = false; ··· 46 47 break; 47 48 case 'users': 48 49 $need_users = true; 50 + break; 51 + case 'authors': 52 + $need_users = true; 53 + $need_agents = true; 49 54 break; 50 55 case 'mailable': 51 56 $need_users = true; ··· 163 168 164 169 foreach ($users as $user) { 165 170 if (!$need_all_users) { 166 - if ($user->getIsSystemAgent()) { 171 + if (!$need_agents && $user->getIsSystemAgent()) { 167 172 continue; 168 173 } 169 174 if ($user->getIsDisabled()) {
+1
src/view/form/control/AphrontFormTokenizerControl.php
··· 82 82 83 83 $map = array( 84 84 'users' => pht('Type a user name...'), 85 + 'authors' => pht('Type a user name...'), 85 86 'usersorprojects' => pht('Type a user or project name...'), 86 87 'searchowner' => pht('Type a user name...'), 87 88 'accounts' => pht('Type a user name...'),