HomePhabricator

Migrate Calendar away from stored-epoch fields

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

Provenance
epriestleyAuthored on Oct 4 2016, 7:03 PM
epriestleyPushed on Oct 6 2016, 10:56 AM
Reviewer
chad
Differential Revision
D16664: Migrate Calendar away from stored-epoch fields
Parents
rPfae0ec9220a7: Use more CalendarDateTime and fewer epoch timestamps in Calendar
Branches
Unknown
Tags
Unknown
Tasks
T10747: Import and export ICS from Calendar
Build Status
Buildable 14039
Build 18211: Run Core Tests