Page MenuHomePhabricator

Set "importStatus" as nonmutable on save()
ClosedPublic

Authored by epriestley on Feb 19 2015, 3:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 4:17 AM
Unknown Object (File)
Tue, Nov 19, 1:50 PM
Unknown Object (File)
Sun, Nov 17, 10:05 AM
Unknown Object (File)
Sun, Nov 17, 10:05 AM
Unknown Object (File)
Sun, Nov 17, 10:05 AM
Unknown Object (File)
Sun, Nov 17, 9:51 AM
Unknown Object (File)
Fri, Nov 15, 10:58 AM
Unknown Object (File)
Sun, Nov 10, 11:41 PM
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
Branch
commitrace2
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 4565
Build 4579: [Placeholder Plan] Wait for 30 Seconds

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.