1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 02:02:41 +01:00
phorge-phorge/src/applications/conduit
epriestley 814fa135b0 Centralize "this is the current user for the request" code
Summary:
Ref T11098. This primarily fixes Conduit calls to `*.edit` methods failing when trying to access user preferences.

(The actual access is a little weird, since it seems like we're building some UI stuff inside a policy query, but that's an issue for another time.)

To fix this, consolidate the "we're about to run some kind of request with this user" code and run it consistently for web, conduit, and SSH sessions.

Additionally, make sure we swap things to the user's translation.

Test Plan:
  - Ran `maniphest.edit` via `arc call-conduit`, no more settings exception.
  - Set translation to ALL CAPS, got all caps output from `ssh` and Conduit.

Reviewers: avivey, chad

Reviewed By: chad

Maniphest Tasks: T11098

Differential Revision: https://secure.phabricator.com/D16066
2016-06-07 07:43:50 -07:00
..
application Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
call Begin cleaning up OAuth scope handling 2016-04-04 09:11:51 -07:00
controller Centralize "this is the current user for the request" code 2016-06-07 07:43:50 -07:00
garbagecollector Remove all references to the Conduit ConnectionLog 2015-12-14 15:25:11 -08:00
interface Formalize custom Conduit fields on objects 2015-12-14 11:54:13 -08:00
method Use Conduit in PhabricatorRepositoryGitCommitChangeParserWorker 2016-04-14 04:53:03 -07:00
parametertype Paramater type inheritence fix 2016-05-11 18:21:14 +00:00
protocol Implement "auth.logout" Conduit API method 2016-04-04 09:12:06 -07:00
query Use Conduit in PhabricatorRepositoryGitCommitChangeParserWorker 2016-04-14 04:53:03 -07:00
settings Allow administrators to configure global default settings 2016-06-05 13:15:06 -07:00
ssh phtize all the things 2015-05-22 21:16:39 +10:00
storage Write some basic "dealing with Conduit changes" documentation 2015-12-14 15:26:24 -08:00