@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 viewPolicy, editPolicy storage to tasks

Summary: Ref T603. Adds storage for custom policies.

Test Plan: Ran storage upgrade. Created and edited tasks.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T603

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

+17
+11
resources/sql/patches/20130925.mpolicy.sql
··· 1 + ALTER TABLE {$NAMESPACE}_maniphest.maniphest_task 2 + ADD viewPolicy VARCHAR(64) NOT NULL COLLATE utf8_bin; 3 + 4 + ALTER TABLE {$NAMESPACE}_maniphest.maniphest_task 5 + ADD editPolicy VARCHAR(64) NOT NULL COLLATE utf8_bin; 6 + 7 + UPDATE {$NAMESPACE}_maniphest.maniphest_task 8 + SET viewPolicy = 'users' WHERE viewPolicy = ''; 9 + 10 + UPDATE {$NAMESPACE}_maniphest.maniphest_task 11 + SET editPolicy = 'users' WHERE editPolicy = '';
+2
src/applications/maniphest/storage/ManiphestTask.php
··· 27 27 protected $description = ''; 28 28 protected $originalEmailSource; 29 29 protected $mailKey; 30 + protected $viewPolicy = PhabricatorPolicies::POLICY_USER; 31 + protected $editPolicy = PhabricatorPolicies::POLICY_USER; 30 32 31 33 protected $attached = array(); 32 34 protected $projectPHIDs = array();
+4
src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php
··· 1628 1628 'type' => 'sql', 1629 1629 'name' => $this->getPatchPath('20130924.mdraftkey.sql'), 1630 1630 ), 1631 + '20130925.mpolicy.sql' => array( 1632 + 'type' => 'sql', 1633 + 'name' => $this->getPatchPath('20130925.mpolicy.sql'), 1634 + ), 1631 1635 ); 1632 1636 } 1633 1637 }