Homec4science

Migrate Calendar away from stored-epoch fields

Authored by epriestley <git@epriestley.com> on Oct 4 2016, 21:03.

Description

Migrate Calendar away from stored-epoch fields

Summary:
Ref T10747. This deprecates "dateFrom", "dateTo", "allDayDateFrom", "allDayDateTo", and "recurrenceEndDate".

They are replaced with "utc*Epoch" fields (for querying) and CalendarDateTime objects (for start, end, until). These objects can represent the full range of dates and times expressible in ICS format, allowing us to import a wider range of ICS events.

Test Plan:
Ran migrations, viewed/edited Calendar, didn't catch anything catastrophcially broken.

This likely needs some followups, I'll keep it local for a bit until I'm confident I didn't break anything too catastrophically. I'm retaining the old data for now so we can likely fix things if it turns out there is some sort of issue.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10747

Differential Revision: https://secure.phabricator.com/D16664

Details

Committed
epriestley <git@epriestley.com>Oct 6 2016, 12:55
Pushed
aubortJan 31 2017, 17:16
Parents
rPHfae0ec9220a7: Use more CalendarDateTime and fewer epoch timestamps in Calendar
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHd3fc1800f86a: Migrate Calendar away from stored-epoch fields (authored by epriestley <git@epriestley.com>).Oct 6 2016, 12:55