Page MenuHomePhabricator

Migrate Audit inline comments to new storage
ClosedPublic

Authored by epriestley on Jul 22 2014, 7:40 PM.
Tags
None
Referenced Files
F13049169: D10018.id24154.diff
Fri, Apr 19, 2:03 AM
F13049168: D10018.id24145.diff
Fri, Apr 19, 2:03 AM
F13049167: D10018.id24078.diff
Fri, Apr 19, 2:03 AM
F13049166: D10018.id24077.diff
Fri, Apr 19, 2:03 AM
F13049165: D10018.id.diff
Fri, Apr 19, 2:03 AM
Unknown Object (File)
Thu, Apr 11, 3:25 AM
Unknown Object (File)
Mon, Apr 1, 9:34 PM
Unknown Object (File)
Mon, Apr 1, 3:56 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
Lint
Lint Skipped
Unit
Tests Skipped

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).