Page MenuHomePhabricator

Remove willWriteRevision/didWriteRevision hooks
ClosedPublic

Authored by epriestley on Mar 8 2014, 8:04 PM.
Tags
None
Referenced Files
F13965396: D8454.id20059.diff
Wed, Oct 16, 1:46 AM
Unknown Object (File)
Wed, Oct 9, 8:39 AM
Unknown Object (File)
Sun, Oct 6, 11:24 AM
Unknown Object (File)
Sep 12 2024, 9:16 AM
Unknown Object (File)
Sep 6 2024, 10:32 AM
Unknown Object (File)
Sep 2 2024, 3:55 PM
Unknown Object (File)
Aug 30 2024, 2:04 AM
Unknown Object (File)
Aug 30 2024, 2:04 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).