Page MenuHomePhorge

Add HarbormasterHookController as an entry point for all Harbormaster hooks
ClosedPublic

Authored by deadalnix on Jun 19 2021, 14:55.
Tags
None
Referenced Files
F3225154: D25005.1742093937.diff
Sat, Mar 15, 02:58
F3224777: D25005.1742089121.diff
Sat, Mar 15, 01:38
F3220328: D25005.1741809685.diff
Tue, Mar 11, 20:01
F3220327: D25005.1741809682.diff
Tue, Mar 11, 20:01
F3220326: D25005.1741809679.diff
Tue, Mar 11, 20:01
F3220325: D25005.1741809675.diff
Tue, Mar 11, 20:01
F3053274: D25005.1740988320.diff
Sun, Mar 2, 07:52
F3001511: D25005.1740442558.diff
Mon, Feb 24, 00:15

Details

Summary

This makes the set of hooks easily extensible, as a first step toward integrating more 3rd party CI in phorge.

Test Plan

Send requests to /harbormaster/hook/circleci/ and /harbormaster/hook/buildkite/ and check they run the proper handler.

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Matthew subscribed.

Looks good to me.

I've created a task to track these changes, by the way.

This revision is now accepted and ready to land.Jun 20 2021, 21:37
src/applications/harbormaster/integration/HarbormasterHookHandler.php
23–25

Could we add documentation to these for future implementations know what's expected? I think in particular getName() actually affects the expected URL to be hit from an external CI, correct? Would a UT be appropriate to ensure that implementations of HarbormasterHookHandler don't overlap their names?

This change looks solid but I am a little concerned about pushing up feature/functional changes prior to getting all the branding work done for T15006: Re-brand Phorge. I haven't been able to spend as much time on that recently as I'd like and would appreciate any assistance on it. I'll update the task to clarify the strategy/approaches that I think we need to address.