Page MenuHomePhabricator

Remove willWriteRevision/didWriteRevision hooks
ClosedPublic

Authored by epriestley on Mar 8 2014, 8:04 PM.
Tags
None
Referenced Files
F13998715: D8454.diff
Thu, Oct 24, 10:51 AM
F13983687: D8454.id20117.diff
Sun, Oct 20, 8:06 AM
F13978188: D8454.id.diff
Oct 18 2024, 10:00 PM
F13965396: D8454.id20059.diff
Oct 16 2024, 1:46 AM
Unknown Object (File)
Oct 9 2024, 8:39 AM
Unknown Object (File)
Oct 6 2024, 11:24 AM
Unknown Object (File)
Sep 12 2024, 9:16 AM
Unknown Object (File)
Sep 6 2024, 10:32 AM
Subscribers

Details

Summary

Ref T2222. DifferentialRevisionEditor has no remaining callsites, but it has a bit of functionality which still needs to be ported forward. I'm going to rip it apart piece by piece.

This removes the willWriteRevision/didWriteRevision hooks. They are completely encapsulated by transactions now, except for a unique piece of branch/task logic, which I migrated forward.

Test Plan
  • Lots of grep.
  • Created a new revision on branch T25, saw it associate with the task.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

btrahan edited edge metadata.
btrahan added inline comments.
src/applications/differential/editor/DifferentialRevisionEditor.php
726

so what type of event gets dispatched now? or is there some better way to do this kind of integration?

This revision is now accepted and ready to land.Mar 10 2014, 4:45 PM

I'm sort of waiting on user complaints for the event stuff. I think a lot of of what they were doing can be done through Herald and/or Harbormaster now. If there are meaningful remaining use cases we can put events into ApplicationTransactions itself.

epriestley updated this revision to Diff 20117.

Closed by commit rPa19f49632fd8 (authored by @epriestley).