Page MenuHomePhabricator

Set "importStatus" as nonmutable on save()
ClosedPublic

Authored by epriestley on Feb 19 2015, 3:41 PM.
Tags
None
Referenced Files
F13125081: D11823.diff
Tue, Apr 30, 12:39 PM
Unknown Object (File)
Mon, Apr 29, 2:32 PM
Unknown Object (File)
Wed, Apr 24, 10:55 PM
Unknown Object (File)
Mon, Apr 22, 10:31 AM
Unknown Object (File)
Wed, Apr 17, 2:20 PM
Unknown Object (File)
Sun, Apr 14, 9:08 AM
Unknown Object (File)
Wed, Apr 10, 7:58 PM
Unknown Object (File)
Mon, Apr 1, 1:26 AM
Subscribers

Details

Summary

Fixes T6840. Depends on D11822, which is a little iffy.

Test Plan

Verified all references to importStatus are either:

  • SQL patches creating the column;
  • reads;
  • writes immediately before an insert; or
  • explicit updates of the column.

That is, I identified no cases of setImportStatus(X)->save() on a Commit which may already exist. This would break that.

In general, almost all writes go through $commit->writeImportStatusFlag(), which is an explicit update.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Set "importStatus" as nonmutable on save().
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.Feb 19 2015, 6:31 PM
This revision was automatically updated to reflect the committed changes.