mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
18938b5310
Summary: Ref T2222. This is the big one. This migrates each `DifferentialComment` to one or more ApplicationTransactions (action, cc, reviewers, update, comment, inlines), and makes `DifferentialComment` a double-reader for ApplicationTransactions. The migration is pretty straightforward: - If a comment took an action not otherwise covered, it gets an "action" transaction. This is something like "epriestley abandoned this revision.". - If a comment updated the diff, it gets an "updated diff" transaction. Very old transactions of this type may not have a diff ID (probably only at Facebook). - If a comment added or removed reviewers, it gets a "changed reviewers" transaction. - If a comment added CCs, it gets a "subscribers" transaction. - If a comment added comment text, it gets a "comment" transaction. - For each inline attached to a comment, we generate an "inline" transaction. Most comments generate a small number of transactions, but a few generate a significant number. At HEAD, the code is basically already doing this, so comments in the last day or two already obey these rules, roughly, and will all generate only one transaction (except inlines). Because we've already preallocated PHIDs in the comment text table, we only need to write to the transaction table. NOTE: This significantly degrades Differential, making inline comments pretty much useless (they each get their own transaction, and don't show line numbers or files). The data is all fine, but the UI is garbage now. This needs to be fixed before we can deploy this to users, but it's easily separable since it's all just display code. Specifically, they look like this: {F112270} Test Plan: I've migrated locally and put things through their paces, but it's hard to catch sketchy stuff locally because most of my test data is nonsense and bad migrations wouldn't necessarily look out of place. IMPORTANT: I'm planning to push this to a branch and then shift production over to the branch, and run it for a day or two before bringing it to master. I generally feel good about this change: it's not that big since we were able to separate a lot of pieces out of it, and it's pretty straightforward. That said, it's still one of the most scary/dangerous changes we've ever made. Reviewers: btrahan CC: chad, aran Maniphest Tasks: T2222 Differential Revision: https://secure.phabricator.com/D8210 |
||
---|---|---|
.. | ||
20140104.harbormastercmd.sql | ||
20140106.macromailkey.1.sql | ||
20140106.macromailkey.2.php | ||
20140108.ddbpname.1.sql | ||
20140108.ddbpname.2.php | ||
20140109.ddxactions.sql | ||
20140109.projectcolumnsdates.sql | ||
20140113.legalpadsig.1.sql | ||
20140113.legalpadsig.2.php | ||
20140115.auth.1.id.sql | ||
20140115.auth.2.expires.sql | ||
20140115.auth.3.unlimit.php | ||
20140115.legalpadsigkey.sql | ||
20140116.reporefcursor.sql | ||
20140126.diff.1.parentrevisionid.sql | ||
20140126.diff.2.repositoryphid.sql | ||
20140130.dash.1.board.sql | ||
20140130.dash.2.panel.sql | ||
20140130.dash.3.boardxaction.sql | ||
20140130.dash.4.panelxaction.sql | ||
20140130.mail.1.retry.sql | ||
20140130.mail.2.next.sql | ||
20140201.gc.1.mailsent.sql | ||
20140201.gc.2.mailreceived.sql | ||
20140205.cal.1.rename.sql | ||
20140205.cal.2.phid-col.sql | ||
20140205.cal.3.phid-mig.php | ||
20140205.cal.4.phid-key.sql | ||
20140210.herald.rule-condition-mig.php | ||
20140210.projcfield.1.blurb.php | ||
20140210.projcfield.2.piccol.sql | ||
20140210.projcfield.3.picmig.sql | ||
20140210.projcfield.4.memmig.sql | ||
20140211.dx.1.nullablechangesetid.sql | ||
20140211.dx.2.migcommenttext.php | ||
20140211.dx.3.migsubscriptions.sql | ||
20140212.dx.1.armageddon.php |