Make cloud events config type lowercase#6408
Conversation
Signed-off-by: Jason Parraga <[email protected]>
Code Review Agent Run Status
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6408 +/- ##
==========================================
- Coverage 58.49% 58.48% -0.01%
==========================================
Files 940 940
Lines 71554 71554
==========================================
- Hits 41853 41848 -5
- Misses 26520 26525 +5
Partials 3181 3181
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
|
||
| var sender interfaces.Sender | ||
| switch cloudEventsConfig.Type { | ||
| switch strings.ToLower(cloudEventsConfig.Type) { |
There was a problem hiding this comment.
nice, thanks for making it backwards compatible
Code Review Agent Run #335773Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Changelist by BitoThis pull request implements the following key changes.
|
Tracking issue
Closes: #6402
Why are the changes needed?
Normalizes cloud event type configuration to lowercase to avoid misconfiguration and match the documentation (specifically regarding Kafka).
What changes were proposed in this pull request?
How was this patch tested?
Existing unit tests.
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link
Summary by Bito
This PR normalizes cloud event configuration types to lowercase to prevent misconfigurations and align with documentation standards. Changes include adding the 'strings' package import, modifying switch logic for lowercase conversion, and updating the Kafka receiver constant to match the new standard.Unit tests added: False
Estimated effort to review (1-5, lower is better): 1