Page MenuHomePhabricator

Remove willWriteRevision/didWriteRevision hooks
ClosedPublic

Authored by epriestley on Mar 8 2014, 8:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Feb 9, 11:49 AM
Unknown Object (File)
Sun, Feb 9, 11:49 AM
Unknown Object (File)
Sun, Feb 9, 11:49 AM
Unknown Object (File)
Sun, Feb 9, 11:49 AM
Unknown Object (File)
Jan 28 2025, 2:57 AM
Unknown Object (File)
Jan 26 2025, 10:42 PM
Unknown Object (File)
Jan 23 2025, 11:41 PM
Unknown Object (File)
Jan 21 2025, 11:34 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
Branch
dx15
Lint
Lint Passed
Unit
Tests Passed

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).