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

Add 'My Mocks' filter to Pholio

Summary: Add the ability to filter Pholio on Mocks I added.

Test Plan: Went to test user account, no mocks, went to my account, saw mocks.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

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

+8 -2
+1 -1
src/applications/pholio/application/PhabricatorApplicationPholio.php
··· 10 10 } 11 11 12 12 public function getShortDescription() { 13 - return 'Design Review'; 13 + return pht('Design Review'); 14 14 } 15 15 16 16 public function getIconName() {
+1
src/applications/pholio/controller/PholioController.php
··· 11 11 12 12 $nav->addLabel('Mocks'); 13 13 $nav->addFilter('view/all', pht('All Mocks')); 14 + $nav->addFilter('view/my', pht('My Mocks')); 14 15 15 16 if ($for_app) { 16 17 $nav->addFilter('new/', pht('Create Mock'));
+6 -1
src/applications/pholio/controller/PholioMockListController.php
··· 14 14 public function processRequest() { 15 15 $request = $this->getRequest(); 16 16 $user = $request->getUser(); 17 + $viewer_phid = $user->getPHID(); 17 18 18 19 $query = id(new PholioMockQuery()) 19 20 ->setViewer($user) ··· 26 27 case 'view/all': 27 28 default: 28 29 $title = pht('All Mocks'); 29 - break; 30 + break; 31 + case 'view/my': 32 + $title = pht('My Mocks'); 33 + $query->withAuthorPHIDs(array($viewer_phid)); 34 + break; 30 35 } 31 36 32 37 $pager = new AphrontCursorPagerView();