-
Notifications
You must be signed in to change notification settings - Fork 28
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
refine upload endpoint auth flow, add custom error message #522
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found 📢 Thoughts on this report? Let us know! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found Additional details and impacted files@@ Coverage Diff @@
## main #522 +/- ##
==========================================
+ Coverage 91.44% 91.46% +0.01%
==========================================
Files 599 599
Lines 16193 16218 +25
==========================================
+ Hits 14808 14833 +25
Misses 1385 1385
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found @@ Coverage Diff @@
## main #522 +/- ##
==========================================
+ Coverage 91.44% 91.46% +0.01%
==========================================
Files 599 599
Lines 16193 16218 +25
==========================================
+ Hits 14808 14833 +25
Misses 1385 1385
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found Additional details and impacted files@@ Coverage Diff @@
## main #522 +/- ##
=====================================
Coverage 95.77 95.77
=====================================
Files 774 774
Lines 17049 17074 +25
=====================================
+ Hits 16327 16352 +25
Misses 722 722
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Purpose/Motivation
fixes codecov/feedback#344
What does this PR do?
Got some feedback, made me realize that this flow was being handled incorrectly. According to Django's docs,
I updated the flow to return
None
in a few places, instead of raising an error based on context that the function was assuming.Instead, they will continue through the auth flow, so the error is handled by Django's built-in stuff. Then, I added a custom error message for when a user runs into this scenario, in
repo_auth_custom_exception_handler
.