Page MenuHomePhabricator

Set "importStatus" as nonmutable on save()
ClosedPublic

Authored by epriestley on Feb 19 2015, 3:41 PM.
Tags
None
Referenced Files
F13118613: D11823.diff
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
Unknown Object (File)
Feb 20 2024, 9:03 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.