1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 10:22:42 +01:00
phorge-phorge/src/aphront
Bob Trahan 6aac9f99d7 Quicksand - get the dark console working properly with quicksand
Summary:
Fixes T7700.

This ends up being kind of tricky because

 - the key for a given request is only correct at the time the dark console is rendered
 - the dark console itself should contain every request made, as opposed to being drawn from scratch
 - in the case of a quicksand request, the behavior gets invoked first with the correctly rendered console as part of the `quicksand-redraw` event and then again shortly after as an ajax request would, except this is incorrect relative to when the key should be calculated...

So...

 - assume we can get away with concurrency between the `quicksand-redraw` event and ajax request invocation of the behavior
 - cache the right data as part of the `quicksand-redraw` event and then use it in the subsequent ajax call
   - make sure ajax config gets a 'quicksand' flag

...otherwise its somewhat standard make sure this behavior can be init'd a bunch stuff.

Test Plan: visited '/', visited '/differential/', visited '/DXXX' - observed correctly populating dark console with all sorts of good data stuff. navigated backwards and observed dark console staying the same as expected. navigated by clicking links and console updated again

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T7700

Differential Revision: https://secure.phabricator.com/D12582
2015-04-27 16:10:36 -07:00
..
__tests__ Fix an issue where PHP puts the content type in CONTENT_TYPE instead of HTTP_CONTENT_TYPE 2013-11-11 12:17:34 -08:00
configuration Quicksand - make things work properly with high security mode 2015-04-23 16:37:56 -07:00
exception Apply some autofix linter rules 2014-09-10 06:55:05 +10:00
response Quicksand - get the dark console working properly with quicksand 2015-04-27 16:10:36 -07:00
sink Don't call flush() when emitting responses 2015-03-23 09:09:45 -07:00
AphrontController.php Decouple some aspects of request routing and construction 2014-10-17 05:01:40 -07:00
AphrontRequest.php Quicksand - make things work properly with high security mode 2015-04-23 16:37:56 -07:00
AphrontURIMapper.php Remove @group annotations 2014-07-10 08:12:48 +10:00