1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-04 04:32:43 +01:00
phorge-phorge/src/applications/repository/worker
epriestley 2b9838b482 Modularize remaining TYPE_ACTION transactions in Differential, reducing calls to ArcanistDifferentialRevisionStatus
Summary:
Ref T2543. This cleans up a couple of remaining rough edges:

  - We could do an older TYPE_ACTION "close" via the daemons.
  - We could do an older TYPE_ACTION "close" via `arc close-revision`, explicitly or implicitly in `arc land`, via API (`differential.close`).
  - We could do an older TYPE_ACTION "rethink" ("Plan Changes") via the API, via `arc diff --plan-changes` (`differential.createcomment`).

Move these to modern modular transactions, then get rid of all the validation and application logic for them. This nukes a bunch of `ArcanistDifferentialRevision::...` junk.

Test Plan:
  - Used `bin/repository reparse --message rXYZ...` to reparse a commit, closing a corresponding revision.
  - Used `differential.close` to close a revision.
  - Used `differential.createcomment` to plan changes to a revision.
  - Reviewed transaction log for full "closed by commit" message (linking to commit and mentioning author).
  - Grepped for `::TYPE_ACTION` to look for remaining callsites, didn't find any.
  - Grepped for `differential.close` and `differential.createcomment` in `arcanist/` to look for anything suspicious, seemed clean.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T2543

Differential Revision: https://secure.phabricator.com/D18412
2017-08-11 17:20:55 -07:00
..
__tests__ Remove diffusion.getcommits Conduit API method 2016-01-04 06:53:45 -08:00
commitchangeparser Migrate the "badcommit" table to use the less-hacky "hint" mechanism 2016-08-24 09:32:59 -07:00
commitmessageparser Modularize remaining TYPE_ACTION transactions in Differential, reducing calls to ArcanistDifferentialRevisionStatus 2017-08-11 17:20:55 -07:00
PhabricatorRepositoryCommitHeraldWorker.php Return Diffusion diffs through Files, not directly over Conduit 2016-08-27 09:11:03 -07:00
PhabricatorRepositoryCommitOwnersWorker.php Rename "getReviewerStatus()" to "getReviewers()" 2017-03-20 17:11:40 -07:00
PhabricatorRepositoryCommitParserWorker.php Migrate the "badcommit" table to use the less-hacky "hint" mechanism 2016-08-24 09:32:59 -07:00
PhabricatorRepositoryPushMailWorker.php Link to Harbormaster build targets from the Daemon worker page 2015-08-10 14:15:19 -07:00