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
F2943922: D25005.1738231782.diff
Wed, Jan 29, 10:09
F2939200: D25005.1738028900.diff
Mon, Jan 27, 01:48
F2938925: D25005.1738025866.diff
Mon, Jan 27, 00:57
F2938923: D25005.1738025864.diff
Mon, Jan 27, 00:57
F2938873: D25005.1738024815.diff
Mon, Jan 27, 00:40
F2938524: D25005.1738008410.diff
Sun, Jan 26, 20:06
F2937330: D25005.1737951688.diff
Sun, Jan 26, 04:21
F2936396: D25005.1737916776.diff
Sat, Jan 25, 18:39

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
Branch
extensiblehook
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 12
Build 12: arc lint + arc unit

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
24–26

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.