Page MenuHomePhabricator

Migrate remaining Audit database status constants
ClosedPublic

Authored by epriestley on Sep 11 2018, 2:05 PM.
Tags
None
Referenced Files
F15463553: D19655.id46986.diff
Wed, Apr 2, 12:44 AM
F15463320: D19655.id46993.diff
Tue, Apr 1, 10:27 PM
F15445551: D19655.id.diff
Thu, Mar 27, 2:32 PM
F15437727: D19655.diff
Tue, Mar 25, 9:11 PM
F15389166: D19655.id46986.diff
Sat, Mar 15, 4:57 AM
F15383480: D19655.id.diff
Fri, Mar 14, 4:51 PM
F15331985: D19655.diff
Fri, Mar 7, 3:47 PM
F15302026: D19655.id46975.diff
Wed, Mar 5, 6:31 PM
Subscribers
Restricted Owners Package

Details

Summary

Depends on D19652. Ref T13197. See PHI851. This migrates the actual auditStatus on Commits, and older status transactions.

Test Plan
  • Ran migrations.
  • Spot-checked the database for sanity.
  • Ran some different queries, got unchanged results from before migration.
  • Reviewed historic audit state transactions, and accepted/raised concern on new audits. All state transactions appeared to generate properly.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a subscriber: Restricted Owners Package.Sep 11 2018, 2:05 PM
amckinley added inline comments.
resources/sql/autopatches/20180910.audit.04.xactions.php
23

No need to update old_value?

This revision is now accepted and ready to land.Sep 11 2018, 8:20 PM
epriestley added inline comments.
resources/sql/autopatches/20180910.audit.04.xactions.php
23

Oh! Nothing ever uses the old value so I thought it wasn't populated, but I went back and double checked and it actually is. So we don't need to, but I'll update this so we do just for completeness.

  • Also migrate old values.
  • Re-ran migration with bin/storage upgrade -f --apply ... --trace, saw reasonable-looking queries and ended up in a sensible database state.
This revision was automatically updated to reflect the committed changes.