Skip to content
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

fix: use proper status code to handle warehouse process #2659

Merged
merged 2 commits into from
Nov 7, 2022

Conversation

achettyiitr
Copy link
Member

Description

Handle status code when batch router hits warehouse v1/process URL.

Notion Ticket

https://www.notion.so/rudderstacks/Handle-warehouse-process-9fa6aa8da88948999ea81bf5a34a352a

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@codecov
Copy link

codecov bot commented Nov 7, 2022

Codecov Report

Base: 43.73% // Head: 45.41% // Increases project coverage by +1.67% 🎉

Coverage data is based on head (3ff3c98) compared to base (43dde0c).
Patch coverage: 74.35% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2659      +/-   ##
==========================================
+ Coverage   43.73%   45.41%   +1.67%     
==========================================
  Files         191      287      +96     
  Lines       40483    47789    +7306     
==========================================
+ Hits        17707    21702    +3995     
- Misses      21671    24709    +3038     
- Partials     1105     1378     +273     
Impacted Files Coverage Δ
config/backend-config/types.go 74.07% <ø> (+74.07%) ⬆️
enterprise/reporting/noop.go 50.00% <0.00%> (+50.00%) ⬆️
services/streammanager/kafka/client/producer.go 82.24% <46.66%> (+1.85%) ⬆️
enterprise/reporting/reporting.go 15.89% <66.66%> (+6.12%) ⬆️
router/batchrouter/batchrouter.go 38.01% <92.85%> (+4.13%) ⬆️
services/streammanager/kafka/kafkamanager.go 75.40% <100.00%> (+12.18%) ⬆️
router/router.go 73.86% <0.00%> (-0.19%) ⬇️
router/throttler/ratelimiter/ratelimiter.go 0.00% <0.00%> (ø)
warehouse/datalake/schema-repository/glue.go 0.00% <0.00%> (ø)
controlplane/controlplane.go 0.00% <0.00%> (ø)
... and 175 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@achettyiitr achettyiitr force-pushed the fix.warehouse-process-api branch from 474b369 to dff1133 Compare November 7, 2022 13:48
@achettyiitr achettyiitr requested review from lvrach, cisse21, a team and atzoum November 7, 2022 13:49

if resp.StatusCode == http.StatusOK {
_, err = io.Copy(io.Discard, resp.Body)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@achettyiitr achettyiitr force-pushed the fix.warehouse-process-api branch from 74b9804 to a8c40e7 Compare November 7, 2022 15:49
@achettyiitr achettyiitr force-pushed the fix.warehouse-process-api branch from a8c40e7 to 3ff3c98 Compare November 7, 2022 15:52
@lvrach lvrach requested a review from sivashanmukh November 7, 2022 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants