Page MenuHomePhabricator

Migrate Audit inline comments to new storage
ClosedPublic

Authored by epriestley on Jul 22 2014, 7:40 PM.
Tags
None
Referenced Files
F14105357: D10018.diff
Wed, Nov 27, 2:15 AM
F14102432: D10018.diff
Tue, Nov 26, 6:55 PM
Unknown Object (File)
Fri, Nov 22, 12:21 PM
Unknown Object (File)
Wed, Nov 20, 10:56 AM
Unknown Object (File)
Mon, Nov 18, 2:13 AM
Unknown Object (File)
Wed, Nov 13, 5:25 PM
Unknown Object (File)
Sun, Nov 10, 2:22 AM
Unknown Object (File)
Wed, Nov 6, 5:00 AM
Subscribers

Details

Summary

Ref T4896. This is substantially identical to the process which Differential followed, and mostly copied from the original Differential migration and the Differential proxy object.

Basically, we move all the data over but the application can't tell, and the same APIs do reads and writes to the new table.

Test Plan
  • Browsed UI before migrating, everything looked fine (but no inlines).
  • Ran migration.
  • Verified draft and published comments survived migration.
  • Added a draft.
  • Previewed draft.
  • Submitted draft.
  • Viewed standalone with drafts and published comments.
  • Sanity checked data in database, didn't see anything unusual.

Diff Detail

Repository
rP Phabricator
Branch
audit3
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 1840
Build 1841: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

epriestley retitled this revision from to Migrate Audit inline comments to new storage.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: joshuaspence, btrahan.

Some initial comments, looks good so far

resources/sql/autopatches/20140722.audit.3.miginlines.php
25

This will get renamed today

26

As above

32

Oh gross, we don't have a PHIDType class for this?

33

Will need to be renamed

This revision is now accepted and ready to land.Jul 23 2014, 1:35 PM
resources/sql/autopatches/20140722.audit.3.miginlines.php
32

Yeah, there are a handful of types which still haven't migrated.

This sequence of diffs will wipe out ACMT ("Audit Comment").

Phortune has query classes now (at least mostly) and we can wipe out these trivially:

const PHID_TYPE_ACNT    = 'ACNT';
const PHID_TYPE_PDCT    = 'PDCT';
const PHID_TYPE_PRCH    = 'PRCH';
const PHID_TYPE_PAYM    = 'PAYM';
const PHID_TYPE_CHRG    = 'CHRG';
const PHID_TYPE_CART    = 'CART';

I think LEGB is Legalpad and trivial to wipe now.

Doorkeeper can trivially migrate, I think.

That should mostly just leave weird magic.

epriestley edited edge metadata.
  • Fix PHIDType class names.
epriestley updated this revision to Diff 24154.

Closed by commit rPc01aa794c1f2 (authored by @epriestley).