-
Notifications
You must be signed in to change notification settings - Fork 75
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
Return primary response and request body fix #1197
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1197 +/- ##
==========================================
- Coverage 86.78% 86.77% -0.02%
==========================================
Files 90 90
Lines 6040 6042 +2
==========================================
+ Hits 5242 5243 +1
- Misses 798 799 +1 ☔ View full report in Codecov by Sentry. |
Hi @nour-borgi could you please remind me why we need this. I don't really understand what this is doing exactly or why it's needed. |
Hello @rcrichton, this PR to replace Hapi proxy by the Kafka channel in eth-cdr (we need the request body) How it was implemented: the response body will be saved as a message in a kafka topic Thus, we can get the bundle from the request body in Logstash to be processed |
* Add more response details * Ensure request body is available when kafka route is primary * Ensure backwards compatible properties are used
WalkthroughThe changes enhance the Koa middleware's request and response handling by introducing two new properties to the context object: Changes
Poem
Tip OpenAI O1 model for chat
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Additional comments not posted (4)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Before: the response body of the primary route only will be sent to the next route.
Now: returning the response and request body of the primary route to the next route.
Summary by CodeRabbit
New Features
resDetails
for response details andreqBody
for request data.Bug Fixes