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

Update Countdown for handleRequest

Summary: Updates a couple of callsites

Test Plan: View list, see countdowns

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

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

+8 -18
+5 -11
src/applications/countdown/controller/PhabricatorCountdownDeleteController.php
··· 3 3 final class PhabricatorCountdownDeleteController 4 4 extends PhabricatorCountdownController { 5 5 6 - private $id; 7 - 8 - public function willProcessRequest(array $data) { 9 - $this->id = $data['id']; 10 - } 11 - 12 - public function processRequest() { 13 - $request = $this->getRequest(); 14 - $user = $request->getUser(); 6 + public function handleRequest(AphrontRequest $request) { 7 + $viewer = $request->getViewer(); 8 + $id = $request->getURIData('id'); 15 9 16 10 $countdown = id(new PhabricatorCountdownQuery()) 17 - ->setViewer($user) 18 - ->withIDs(array($this->id)) 11 + ->setViewer($viewer) 12 + ->withIDs(array($id)) 19 13 ->requireCapabilities( 20 14 array( 21 15 PhabricatorPolicyCapability::CAN_VIEW,
+3 -7
src/applications/countdown/controller/PhabricatorCountdownListController.php
··· 3 3 final class PhabricatorCountdownListController 4 4 extends PhabricatorCountdownController { 5 5 6 - private $queryKey; 7 - 8 6 public function shouldAllowPublic() { 9 7 return true; 10 8 } 11 9 12 - public function willProcessRequest(array $data) { 13 - $this->queryKey = idx($data, 'queryKey'); 14 - } 10 + public function handleRequest(AphrontRequest $request) { 11 + $querykey = $request->getURIData('queryKey'); 15 12 16 - public function processRequest() { 17 13 $controller = id(new PhabricatorApplicationSearchController()) 18 - ->setQueryKey($this->queryKey) 14 + ->setQueryKey($querykey) 19 15 ->setSearchEngine(new PhabricatorCountdownSearchEngine()) 20 16 ->setNavigation($this->buildSideNavView()); 21 17