-
Notifications
You must be signed in to change notification settings - Fork 27
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
♻️ aiohttp
deprecation: Using web.json_response
to return 2XX
responses instead of raising HttpException
#6563
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6563 +/- ##
=========================================
+ Coverage 84.5% 88.1% +3.5%
=========================================
Files 10 1553 +1543
Lines 214 63560 +63346
Branches 25 2078 +2053
=========================================
+ Hits 181 56014 +55833
- Misses 23 7229 +7206
- Partials 10 317 +307
Flags with carried forward coverage won't be shown. Click here to find out more.
|
web.json_response
to return 2XX
responses instead of raising HttpException
9ec5f4a
to
2cfc860
Compare
web.json_response
to return 2XX
responses instead of raising HttpException
aiohttp
errors: Using web.json_response
to return 2XX
responses instead of raising HttpException
aiohttp
errors: Using web.json_response
to return 2XX
responses instead of raising HttpException
aiohttp
deprecation: Using web.json_response
to return 2XX
responses instead of raising HttpException
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 thanks a lot, also for explaining the background behind this
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.
Thanks! 👍
2cfc860
to
e1fc600
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.
thanks
e1fc600
to
2bdcd5b
Compare
Quality Gate passedIssues Measures |
What do these changes do?
aiohttp
deprecated returningHttpException
. Moreover, raising non-error creates false negatives as in the example below where204
(No Content) was shown as an error in our tracingweb.json_response
to return2XX
responses instead of raisingHttpException
aiohttp.web_exceptions
andservicelib.aiohttp.status
codes (taken over from WIP: 🎨 Enh/error handler 500 #5487).Related issue/s
How to test
Dev-ops checklist
None