Page MenuHomePhabricator

Remove willWriteRevision/didWriteRevision hooks
ClosedPublic

Authored by epriestley on Mar 8 2014, 8:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 4:44 AM
Unknown Object (File)
Sat, Dec 14, 10:56 PM
Unknown Object (File)
Thu, Dec 5, 9:12 PM
Unknown Object (File)
Wed, Dec 4, 3:51 PM
Unknown Object (File)
Tue, Dec 3, 8:38 PM
Unknown Object (File)
Thu, Nov 28, 9:07 AM
Unknown Object (File)
Sun, Nov 24, 11:50 PM
Unknown Object (File)
Oct 24 2024, 10:51 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).