@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, repositoryPHID columns to DifferentialRevision

Summary: Ref T603. Paves the way for policy controls.

Test Plan: Ran storage upgrade, bumbled around in Differential.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T603

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

+24
+17
resources/sql/patches/20130925.xpolicy.sql
··· 1 + ALTER TABLE {$NAMESPACE}_differential.differential_revision 2 + ADD viewPolicy VARCHAR(64) NOT NULL COLLATE utf8_bin; 3 + 4 + ALTER TABLE {$NAMESPACE}_differential.differential_revision 5 + ADD editPolicy VARCHAR(64) NOT NULL COLLATE utf8_bin; 6 + 7 + UPDATE {$NAMESPACE}_differential.differential_revision 8 + SET viewPolicy = 'users' WHERE viewPolicy = ''; 9 + 10 + UPDATE {$NAMESPACE}_differential.differential_revision 11 + SET editPolicy = 'users' WHERE editPolicy = ''; 12 + 13 + ALTER TABLE {$NAMESPACE}_differential.differential_revision 14 + ADD repositoryPHID VARCHAR(64) COLLATE utf8_bin; 15 + 16 + ALTER TABLE {$NAMESPACE}_differential.differential_revision 17 + ADD KEY (repositoryPHID);
+3
src/applications/differential/storage/DifferentialRevision.php
··· 25 25 protected $mailKey; 26 26 protected $branchName; 27 27 protected $arcanistProjectPHID; 28 + protected $repositoryPHID; 29 + protected $viewPolicy = PhabricatorPolicies::POLICY_USER; 30 + protected $editPolicy = PhabricatorPolicies::POLICY_USER; 28 31 29 32 private $relationships = self::ATTACHABLE; 30 33 private $commits = self::ATTACHABLE;
+4
src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php
··· 1632 1632 'type' => 'sql', 1633 1633 'name' => $this->getPatchPath('20130925.mpolicy.sql'), 1634 1634 ), 1635 + '20130925.xpolicy.sql' => array( 1636 + 'type' => 'sql', 1637 + 'name' => $this->getPatchPath('20130925.xpolicy.sql'), 1638 + ), 1635 1639 ); 1636 1640 } 1637 1641 }