-
Notifications
You must be signed in to change notification settings - Fork 752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor webhook route config #243
Conversation
@magaldima @dtaniwaki please review the pr. |
@VaibhavPage Could you tell me the motivation of this interface change to start reviewing?
By the way, I think this fix should've been separated for easier review and future reference. I prefer keeping PRs as small and independent as possible. |
Yeah, PRs have been big for a while, I will try to break these in smaller pieces in future 😄 In webhook like gateways, we had Making RouteConfig as interface now mandates all webhook like gateways to implement it and the implementing struct can contain the extra fields which now can be accessed directly in the methods like The issue introduced by #221 - The code didn't check whether hook from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented about the interface name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGtM!
* refactor(): webhook route config * refactor(): webhook route config and removing trello gateway * refactor(): route config * fix(): bug introduced from argoproj#221 * chore(): fix calendar gateway example * fix(): sns gateway test * test(): recover test * fix(): makefile * chore(): updating comments * chore(): updating makefile image version * refactor(): rename RouteConfig interface to RouteManager
Configs
map from RouteConfig. Make RouteConfig as an interface.This PR does not contain any breaking changes to spec.