Page MenuHomePhabricator

Guarantee that fields copied from diffs persist on revisions
ClosedPublic

Authored by epriestley on Mar 24 2014, 5:50 PM.
Tags
None
Referenced Files
F13213073: D8610.id20419.diff
Fri, May 17, 7:20 AM
F13213071: D8610.id20400.diff
Fri, May 17, 7:20 AM
F13208038: D8610.id20400.diff
Thu, May 16, 8:14 AM
F13202578: D8610.diff
Tue, May 14, 10:52 PM
F13185372: D8610.diff
Sat, May 11, 2:50 AM
F13176852: D8610.id20400.diff
Wed, May 8, 5:52 PM
Unknown Object (File)
Tue, May 7, 5:10 AM
Unknown Object (File)
Fri, May 3, 2:34 AM

Details

Summary

Fixes T4636. Currently, we copy fields from the diff to the revision during the external effect phase, but there's no guarantee that we persist the object after this phase.

(In practice, when Herald rules trigger they cause the object to persist on this install, which is why we don't see this issue.)

Instead, move the field copies to the internal phase, where persistence is guaranteed.

Also consolidate some of the diff loading.

Test Plan

Ran arc diff.

Diff Detail

Repository
rP Phabricator
Branch
diff1
Lint
Lint Passed
Unit
Tests Passed

Event Timeline

epriestley retitled this revision from to Guarantee that fields copied from diffs persist on revisions.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Mar 25 2014, 8:03 PM
epriestley updated this revision to Diff 20419.

Closed by commit rP2547a222d8b1 (authored by @epriestley).