Page MenuHomePhabricator

Use ModularTransactions for accept/reject/resign in "differential.createcomment"
ClosedPublic

Authored by epriestley on Mar 20 2017, 4:37 PM.
Tags
None
Referenced Files
F18878190: D17513.diff
Thu, Nov 6, 3:38 PM
F18774015: D17513.diff
Oct 9 2025, 2:21 PM
F18762287: D17513.id.diff
Oct 6 2025, 6:19 PM
F18739018: D17513.diff
Oct 1 2025, 7:00 PM
F18733511: D17513.id.diff
Sep 30 2025, 10:36 PM
F18562814: D17513.id.diff
Sep 9 2025, 4:57 AM
F18459911: D17513.id.diff
Sep 1 2025, 6:17 PM
F18459103: D17513.id42138.diff
Sep 1 2025, 4:16 PM
Subscribers
None

Details

Summary

Ref T10967. differential.createcomment is a frozen API method which has been obsoleted by differential.revision.edit.

It is the only remaining way to apply an "accept", "reject", or "resign" action using the old "ACTION" code.

Instead of using the old code, sneakly apply a new type of transaction in these cases instead.

Then, remove all the remaining old code for this stuff on the write pathways.

Test Plan
  • Used "differential.createcomment" to accept, reject, and resign from a revision.
  • Grepped for all removed ACTION_X constants, found them only in rendering code.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable