1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-21 17:58:47 +02:00
phorge-phorge/src/applications/diffusion
epriestley 711f13660e Synchronize working copies before doing a "bypassCache" commit read
Summary:
Ref T4292. When the daemons make a query for repository information, we need to make sure the working copy on disk is up to date before we serve the response, since we might not have the inforamtion we need to respond otherwise.

We do this automatically for almost all Diffusion methods, but this particular method is a little unusual and does not get this check for free. Add this check.

Test Plan:
  - Made this code throw.
  - Ran `bin/repository reparse --message ...`, saw the code get hit.
  - Ran `bin/repository lookup-user ...`, saw this code get hit.
  - Made this code not throw.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T4292

Differential Revision: https://secure.phabricator.com/D15783
2016-04-22 08:11:43 -07:00
..
application Trivially implement RepositoryEditEngine and API methods 2016-04-17 16:02:13 -07:00
capability Simplify the implementation of PhabricatorPolicyCapability subclasses 2014-07-25 08:25:42 +10:00
conduit Synchronize working copies before doing a "bypassCache" commit read 2016-04-22 08:11:43 -07:00
config Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
controller Fix an issue with PHID/handle management in push logs 2016-04-20 04:47:10 -07:00
data Parse and display commit authorship date in Git in Diffusion 2016-01-11 09:32:37 -08:00
doorkeeper Partially modernize Doorkeeper/Asana bridge 2014-10-01 07:09:34 -07:00
edge Fix reverting commit language 2015-06-01 09:54:30 +10:00
editor Support more transactions types in RepositoryEditEngine 2016-04-17 16:27:02 -07:00
engine Record which cluster host received a push 2016-04-19 13:06:30 -07:00
engineextension Move PhabricatorHovercard to PHUIHovercard 2016-02-03 16:26:30 +00:00
exception Replace AphrontUsageException with AphrontMalformedRequestException 2015-09-03 10:04:17 -07:00
garbagecollector Support ID-based repository URIs, and canonicalize repository URIs 2016-02-18 09:56:28 -08:00
gitlfs Implement a Git LFS link table and basic batch API 2016-03-17 17:15:20 -07:00
herald Move various other callsites away from callsigns 2016-01-04 06:54:42 -08:00
management Show "Last Writer" and "Last Write At" in the UI, add more documentation 2016-04-20 10:45:03 -07:00
panel Add "Mailing List" users 2015-06-03 18:42:33 -07:00
protocol Synchronize (hosted, clustered, Git) repositories over Conduit + HTTP 2016-04-19 13:05:45 -07:00
query Extract repository command construction from Repositories 2016-04-19 04:51:48 -07:00
remarkup Stop all object mentions from matching after "@" 2015-09-29 06:43:49 -07:00
request Remove uncalled DiffusionRequest->getCallsign() 2016-02-17 17:17:35 -08:00
response Implement a Git LFS server which supports no operations 2016-03-17 08:08:43 -07:00
ssh Synchronize (hosted, git, clustered, SSH) repositories prior to reads 2016-04-19 13:05:17 -07:00
symbol Extend from Phobject 2015-06-15 18:02:27 +10:00
typeahead Improve type and icon information in typeahead 2016-02-05 12:48:20 -08:00
view Fix an issue with PHID/handle management in push logs 2016-04-20 04:47:10 -07:00
DiffusionLintSaveRunner.php Move repository URIs to a dedicated index 2016-01-13 09:34:31 -08:00