Page MenuHomePhabricator

Set "importStatus" as nonmutable on save()
ClosedPublic

Authored by epriestley on Feb 19 2015, 3:41 PM.
Tags
None
Referenced Files
F13210465: D11823.diff
Fri, May 17, 4:53 AM
F13201771: D11823.id28507.diff
Tue, May 14, 3:54 PM
F13201770: D11823.id28494.diff
Tue, May 14, 3:54 PM
F13201716: D11823.id.diff
Tue, May 14, 3:08 PM
F13201618: D11823.diff
Tue, May 14, 1:43 PM
F13196064: D11823.diff
Sun, May 12, 10:54 PM
Unknown Object (File)
Fri, May 3, 3:28 AM
Unknown Object (File)
Tue, Apr 30, 12:39 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
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.