@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.

Default the Almanac Devices query to "Active Devices"

Summary: Ref T13641. Now that we can provide an "Active Devices" query, provide it and make it the default.

Test Plan: Viewed Almanac devices, got a list of active devices. Clicked "All Devices" to get all devices.

Maniphest Tasks: T13641

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

+4 -1
+4 -1
src/applications/almanac/query/AlmanacDeviceSearchEngine.php
··· 71 71 72 72 protected function getBuiltinQueryNames() { 73 73 $names = array( 74 + 'active' => pht('Active Devices'), 74 75 'all' => pht('All Devices'), 75 76 ); 76 77 ··· 78 79 } 79 80 80 81 public function buildSavedQueryFromBuiltin($query_key) { 81 - 82 82 $query = $this->newSavedQuery(); 83 83 $query->setQueryKey($query_key); 84 84 85 85 switch ($query_key) { 86 + case 'active': 87 + $active_statuses = AlmanacDeviceStatus::getActiveStatusList(); 88 + return $query->setParameter('statuses', $active_statuses); 86 89 case 'all': 87 90 return $query; 88 91 }