1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 00:02:41 +01:00
phorge-phorge/src/applications/conpherence/controller
epriestley e556d20577 Fix some issues where Conpherence would make to many draft requests
Summary:
A few minor fixes:

  - When we build a tag with `"meta" => null`, strip the attribute like we do for all other attributes. Previously, we would actually set the metadata to `null`. This happened with the Conpherence form.
  - Just respond to the draft request with an empty (but valid) response, instead of building a dialog.
  - `PhabricatorShapedRequest` is confusingly named and I should have caught this in review, but the basic shape of it is:
    - You make one object.
    - You call `trigger()` when stuff changes (e.g., a keystroke).
    - It manages making a small number of requests (e.g., one request after the user stops typing for a moment).
  - The way it was being used previously would incorrectly send a request for every keystroke.

I think I'm going to simplify `ShapedRequest` and merge it into some larger queue for T430.

Test Plan: Typed some text, no longer saw a flurry of requests. Reloaded page, still saw draft text.

Reviewers: btrahan, chad

Reviewed By: chad

CC: aran, chad

Differential Revision: https://secure.phabricator.com/D8380
2014-03-01 11:23:08 -08:00
..
ConpherenceController.php Rename "status" to "event" in most URIs / classes / etc 2014-02-06 10:10:07 -08:00
ConpherenceListController.php Conpherence - make the JS layer a bit better 2013-05-29 12:46:06 -07:00
ConpherenceNewController.php Always pass handles to tokenizers, not <phid -> name> maps 2013-10-07 12:51:24 -07:00
ConpherenceNotificationPanelController.php Replace some hsprintf() by phutil_tag() 2013-11-11 09:23:23 -08:00
ConpherenceUpdateController.php Fix some issues where Conpherence would make to many draft requests 2014-03-01 11:23:08 -08:00
ConpherenceViewController.php Conpherence - add draft support 2014-02-17 15:57:13 -08:00
ConpherenceWidgetController.php Fix calendar display on profile. 2014-02-25 13:43:31 -08:00