-
Notifications
You must be signed in to change notification settings - Fork 83
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
feat(sdk): Custom Trigger Multi-Pipeline Support #941
feat(sdk): Custom Trigger Multi-Pipeline Support #941
Conversation
c81260c
to
38ed098
Compare
Codecov Report
@@ Coverage Diff @@
## main #941 +/- ##
==========================================
- Coverage 66.16% 65.54% -0.62%
==========================================
Files 33 33
Lines 2503 2525 +22
==========================================
- Hits 1656 1655 -1
- Misses 748 771 +23
Partials 99 99
Continue to review full report at Codecov.
|
38ed098
to
b21662f
Compare
29bcd0b
to
1647a4e
Compare
dafe690
to
034717c
Compare
Add service.processMessageOnRuntime to use default pipeline if configured or attempt to use topic matching logic. Deprecate TriggerMessageProcessor and TriggerContextBuilder and inline the existing functions on TriggerConfig as the approach used there will not work with multiple pipelines. Replace with MessageProcessor that only takes the message envelope and builds context(s) as needed. Signed-off-by: Alex Ullrich <[email protected]>
034717c
to
4d23791
Compare
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
Add service.processMessageOnRuntime to use default pipeline if configured or attempt to use topic matching logic. Deprecate TriggerMessageProcessor and TriggerContextBuilder and inline the existing functions on TriggerConfig as the approach used there will not work with multiple pipelines. Replace with MessageProcessor that only takes the message envelope and builds context(s) as needed. Signed-off-by: Alex Ullrich <[email protected]>
Add service.processMessageOnRuntime to use default pipeline if configured or attempt to use topic matching logic. Deprecate TriggerMessageProcessor and TriggerContextBuilder and inline the existing functions on TriggerConfig as the approach used there will not work with multiple pipelines. Replace with MessageProcessor that only takes the message envelope and builds context(s) as needed.
PR Checklist
Please check if your PR fulfills the following requirements:
Related Docs PR now required (if applicable)
Related Docs PR:
If n/a for Docs PR, state why it is not applicable:
What is the current behavior?
Issue Number:
#940
What is the new behavior?
Custom triggers will be able to use the default topic -> pipeline(s) matching logic.
Does this PR introduce a breaking change?
Only affects custom triggers, the message processor function no longer takes the app context as a parameter. The trigger will no longer be responsible for establishing context just preparing the message envelope.
Are there any new imports or modules? If so, what are they used for and why?
go-multierror from hashicorp is used to group pipeline errors for return to the trigger.
Are there any specific instructions or things that should be known prior to reviewing?
Other information