1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-04 11:51:02 +01:00
phorge-phorge/src/applications/conpherence
epriestley 3ab6a7e19f Generate "stub" events earlier, so more infrastructure works with Calendar
Summary:
Ref T9275. When you create a recurring event which recurs forever, we want to avoid writing an infinite number of rows to the database.

Currently, we write a row to the database right before you edit the event. Until then, we refer to it as `E123/999` or whatever ("instance 999 of event 123").

This creates a big mess with trying to make recurring events work with EditEngine, Subscriptions, Projects, Flags, Tokens, etc -- all of this stuff assumes that whatever you're working with has a PHID.

I poked at letting this stuff work without a PHID a little bit, but that looked like a gigantic mess.

Instead, generate an event "stub" a little sooner (when you look at the event detail page). This is basically just an ID/PHID to refer to the instance.

Then, when you edit the stub, "materialize" it into a real event.

This still has some issues, but I think it's more promising than the other approach was.

Also:

  - Removes dead user profile calendar controller.
  - Replaces comments with EditEngine comments.

Test Plan:
  - Commented on a recurring event.
  - Awarded tokens to a recurring event.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9275

Differential Revision: https://secure.phabricator.com/D16248
2016-07-13 07:41:16 -07:00
..
__tests__ Modularize content sources 2016-03-26 11:59:45 -07:00
application Fully modularize the "Quick Actions" menu 2016-06-05 10:32:01 -07:00
conduit Modularize content sources 2016-03-26 11:59:45 -07:00
config Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
constants Modernize Conpherence access to user preferences 2016-06-04 14:41:25 -07:00
controller Cache user notification and message counts 2016-06-05 08:52:43 -07:00
editor Cache user notification and message counts 2016-06-05 08:52:43 -07:00
engineextension Lift Conpherence indexing up out of the Fulltext index 2015-12-21 17:25:05 -08:00
mail Modularize content sources 2016-03-26 11:59:45 -07:00
phid Conpherence - remove room vs message distinction as far as users are concerned 2015-06-25 13:14:20 -07:00
policyrule Conpherence - remove room vs message distinction as far as users are concerned 2015-06-25 13:14:20 -07:00
query Generate "stub" events earlier, so more infrastructure works with Calendar 2016-07-13 07:41:16 -07:00
remarkup Conpherence - make ZXXX monograms a bit more useful. 2015-04-13 12:45:55 -07:00
storage Cache user notification and message counts 2016-06-05 08:52:43 -07:00
view Modernize various menu collapse settings 2016-06-04 14:44:36 -07:00
ConpherenceTransactionRenderer.php Extend from Phobject 2015-06-15 18:02:27 +10:00