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

Fix an exception with user cache generation in "bin/conduit call --as <user>"

Summary:
Ref T13249. Using "--as" to call some Conduit methods as a user can currently fatal when trying to access settings/preferences.

Allow inline regeneration of user caches.

Test Plan: Called `project.edit` to add a member. Before: constructing a policy field tried to access the user's preferences and failed. After: Smooth sailing.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13249

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

+4
+4
src/applications/conduit/management/PhabricatorConduitCallManagementWorkflow.php
··· 58 58 'No such user "%s" exists.', 59 59 $as)); 60 60 } 61 + 62 + // Allow inline generation of user caches for the user we're acting 63 + // as, since some calls may read user preferences. 64 + $actor->setAllowInlineCacheGeneration(true); 61 65 } else { 62 66 $actor = $viewer; 63 67 }