Make hooks/events listen to the new API Events.
Create a ChangeHookApiListener to listen to the new API Events and forward these events to the old legacy ChangeHookRunner. This decouples the hooks and stream events from the internal events. This also decouples the ChangeHooks interface (and implementations) from all internal classes except for the new ChangeHookApiListener. This decoupling should now make it very easy to move all of these classes to plugins. Change-Id: I9153dca45727f1c7ea10a8d003e1acf2171b39ac
This commit is contained in:
committed by
David Pursehouse
parent
59cdd227a9
commit
d432c83a72
@@ -674,6 +674,7 @@ public abstract class AbstractDaemonTest {
|
||||
protected void saveProjectConfig(Project.NameKey p, ProjectConfig cfg)
|
||||
throws Exception {
|
||||
try (MetaDataUpdate md = metaDataUpdateFactory.create(p)) {
|
||||
md.setAuthor(identifiedUserFactory.create(admin.getId()));
|
||||
cfg.commit(md);
|
||||
}
|
||||
projectCache.evict(cfg.getProject());
|
||||
|
||||
Reference in New Issue
Block a user