1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 09:42:41 +01:00
phorge-phorge/src/applications/calendar
epriestley 0ebe56be40 Fix two Calendar availability cache issues
Summary:
Fixes T12661.

When changing the start date of an event from some time in the past to some time significantly in the future (more than 24 hours), we'd invalidate only future caches and leave users in an "away" state. Instead, just invalidate all past and future caches (this is simpler than trying to figure out a narrower window, and should not make us do too much extra work).

When uninviting users from events, their caches also didn't get cleared correctly. Instead, clear them.

Test Plan:
  - Changed an event from "Apr 1 - June 1" to "May 15 - June 1", saw availablity clear properly.
  - Uninvited user `@dog` from an ongoing event, saw availability clear properly.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12661

Differential Revision: https://secure.phabricator.com/D17809
2017-05-01 10:43:51 -07:00
..
__tests__ Fix errors found by PHPStan 2017-02-17 10:10:15 +00:00
application Allow users to mark themselves as "Available", "Busy" or "Away" while attending an event 2016-11-04 16:55:44 -07:00
capability Provide default view and edit policies in Calendar, plus "Event Host" and "Event Invitees" 2016-07-13 15:42:12 -07:00
codex Require several advanced postgraduate degrees to understand object policies 2016-11-09 15:05:38 -08:00
command Convert Calendar to Modular Transactions 2016-07-13 07:46:33 -07:00
conduit Add calendar.event.search and calendar.event.edit 2016-07-13 10:17:46 -07:00
controller Make the modal choice between "Edit This Event" and "Edit Future Events" more clear 2016-11-28 10:47:58 -08:00
editor Fix two Calendar availability cache issues 2017-05-01 10:43:51 -07:00
herald Add basic Herald support to Calendar 2016-08-06 14:37:33 -07:00
icon Provide a "PHUIFormIconSetControl" 2015-12-16 08:46:51 -08:00
import Provide a standalone bin/calendar reload ... workflow for testing/debugging 2016-11-07 10:55:18 -08:00
importlog Queue large ICS files for background import 2016-11-06 07:46:21 -08:00
mail phtize all the things 2015-05-22 21:16:39 +10:00
management Provide a standalone bin/calendar reload ... workflow for testing/debugging 2016-11-07 10:55:18 -08:00
notifications Render timezones in event reminder mail, and render them more nicely 2017-04-10 08:48:37 -07:00
phid Remove "isCancelledEvent()" wrapper on Calendar Events 2016-10-31 15:30:21 -07:00
policyrule Improve Calendar event behavior for group invites 2016-11-15 11:16:55 -08:00
query Fix an issue where recurring ghost events could go missing if queried with a limit 2017-04-10 08:48:21 -07:00
remarkup Calendar event monograms, part 3. Remarkup for calendar event monograms. 2015-04-27 14:27:34 -07:00
search Rename Event "userPHID" to "hostPHID" 2016-07-13 15:39:55 -07:00
storage Fix two issues with user Calendar event availability cache display 2017-04-10 08:47:27 -07:00
typeahead Make Calendar query for indirect invites/RSVPs by default, like Differential 2016-11-15 12:47:01 -08:00
util Fix errors found by PHPStan 2017-02-18 09:24:56 +00:00
view Use the same date rendering display logic for both tooltips and subheaders 2016-11-16 08:37:25 -08:00
worker Queue large ICS files for background import 2016-11-06 07:46:21 -08:00
xaction Fix an issue where setting a recurrence end date on a Calendar event without one could fatal 2017-01-06 16:36:09 -08:00