HomePhorge

Build an event dispatch mechanism into Phabricator

Description

Build an event dispatch mechanism into Phabricator

Summary:
This is an attempt to satisfy a lot of the one-off requests a little more
generally, by providing a relatively generic piece of event architecture.

Allow the registation of event listeners which can react to various application
events (currently, task editing).

I'll doc this a bit better but I wanted to see if anyone had massive objections
to doing this or the broad approach. The specific problem I want to address is
that one client wants to do a bunch of routing for tasks via email, so it's
either build a hook, or have them override most of ManiphestReplyHandler, or
something slightly more general like this.

Test Plan: Wrote a silly listener that adds "Quack!" to a task every time it is
edited and edited some tasks. I was justly rewarded.

Reviewers: nh, jungejason, tuomaspelkonen, aran

Reviewed By: aran

CC: aran, epriestley

Differential Revision: 881

Details

Provenance
epriestleyAuthored on Aug 31 2011, 1:25 PM
themackabuPushed on Tue, Mar 25, 8:07 PM
Parents
rP8e8d91a1ff60: Allow Diffusion to display the initial commit in Git repositories
Branches
Unknown
Tags
Unknown

Event Timeline