Page MenuHomePhabricator

Migrate Audit inline comments to new storage
ClosedPublic

Authored by epriestley on Jul 22 2014, 7:40 PM.
Tags
None
Referenced Files
F14080258: D10018.diff
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
Unknown Object (File)
Oct 23 2024, 8:49 AM
Unknown Object (File)
Oct 19 2024, 4:46 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
Tests Passed
Build Status
Buildable 1885
Build 1886: [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).