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

allow setting view and edit policy with maniphest.createtask

Summary: allowing explicit maniphest policy on api creation

Test Plan:
tested with arc cli

Example:

> echo '{"title": "mc6", "editPolicy": "users", "viewPolicy": "users"}' | \
> arc call-conduit maniphest.createtask

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

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

authored by

cpettet and committed by
epriestley
0420754d 5183bf3c

+16
+16
src/applications/maniphest/conduit/ManiphestConduitAPIMethod.php
··· 32 32 'title' => $is_new ? 'required string' : 'optional string', 33 33 'description' => 'optional string', 34 34 'ownerPHID' => 'optional phid', 35 + 'viewPolicy' => 'optional phid or policy string', 36 + 'editPolicy' => 'optional phid or policy string', 35 37 'ccPHIDs' => 'optional list<phid>', 36 38 'priority' => 'optional int', 37 39 'projectPHIDs' => 'optional list<phid>', ··· 113 115 } 114 116 115 117 $transactions = array(); 118 + 119 + $view_policy = $request->getValue('viewPolicy'); 120 + if ($view_policy !== null) { 121 + $transactions[] = id(new ManiphestTransaction()) 122 + ->setTransactionType(PhabricatorTransactions::TYPE_VIEW_POLICY) 123 + ->setNewValue($view_policy); 124 + } 125 + 126 + $edit_policy = $request->getValue('editPolicy'); 127 + if ($edit_policy !== null) { 128 + $transactions[] = id(new ManiphestTransaction()) 129 + ->setTransactionType(PhabricatorTransactions::TYPE_EDIT_POLICY) 130 + ->setNewValue($edit_policy); 131 + } 116 132 117 133 $project_phids = $request->getValue('projectPHIDs'); 118 134 if ($project_phids !== null) {