Page MenuHomePhabricator

Re-implement calendar.invite transactions
ClosedPublic

Authored by avivey on Jul 17 2016, 7:50 PM.
Tags
None
Referenced Files
F18791671: D16311.id39228.diff
Thu, Oct 16, 4:42 PM
F18778401: D16311.diff
Sat, Oct 11, 9:13 AM
F18763325: D16311.id39231.diff
Mon, Oct 6, 11:47 PM
F18753817: D16311.diff
Sat, Oct 4, 8:23 PM
F18738166: D16311.id39246.diff
Wed, Oct 1, 2:24 PM
F18737358: D16311.id39231.diff
Wed, Oct 1, 10:20 AM
F18735999: D16311.id.diff
Wed, Oct 1, 4:23 AM
F18696264: D16311.id39228.diff
Sat, Sep 27, 7:13 AM
Subscribers

Details

Summary

Fix T11339.
Now, old and new are both simple lists of phids, and the rendering should make sense.

Test Plan

Viewed existing transaction with all 3 states.

Diff Detail

Repository
rP Phabricator
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 13105
Build 16755: Run Core Tests
Build 16754: arc lint + arc unit

Event Timeline

avivey retitled this revision from to render uninvites correctly.
avivey updated this object.
avivey edited the test plan for this revision. (Show Details)
avivey added a reviewer: epriestley.
epriestley edited edge metadata.

Maybe a better solution will be to make both values plain lists of invitees

Yeah, I think I like this approach better, as it's more symmetrical if nothing else.

This revision now requires changes to proceed.Jul 18 2016, 6:40 PM
avivey edited edge metadata.
  • change implementation
avivey retitled this revision from render uninvites correctly to Re-implement calendar.invite transactions.Jul 21 2016, 12:44 AM
avivey updated this object.
avivey edited edge metadata.
epriestley edited edge metadata.
epriestley added inline comments.
resources/sql/autopatches/20160720.calendar.invitetxn.php
7 ↗(On Diff #39231)

"Restructring" missing a "u" I think?

25–26 ↗(On Diff #39231)

Prefer phutil_json_encode(), which throws if the value isn't encodable (e.g., invalid UTF8).

32–43 ↗(On Diff #39231)

Consider inlining this code: these functions will exist at global scope for all time, and collide with other functions named update_old_value() and update_new_value() in the future. IDEs may identify these as functions for autocomplete when there is a ~0% chance any user ever intends to type them, etc.

This revision is now accepted and ready to land.Jul 21 2016, 11:13 AM
avivey updated this object.
avivey edited edge metadata.

inline things, phutil_json_encode

This revision was automatically updated to reflect the committed changes.