-
Notifications
You must be signed in to change notification settings - Fork 429
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
feat: Improvements in the GitHub integration BE #3962
feat: Improvements in the GitHub integration BE #3962
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Uffizzi Preview |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3962 +/- ##
==========================================
+ Coverage 96.22% 96.28% +0.06%
==========================================
Files 1142 1143 +1
Lines 36775 36992 +217
==========================================
+ Hits 35386 35618 +232
+ Misses 1389 1374 -15 ☔ View full report in Codecov by Sentry. |
api/integrations/github/views.py
Outdated
} | ||
|
||
response = requests.delete(url, headers=headers, timeout=10) | ||
response.raise_for_status() |
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.
We're assuming we're returning 500 in case of any errors from Github here?
Do we want to return the error message to the client or at least log it in some way?
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.
Right, good catch. Done.
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.
Requested a couple of changes, see comments.
Flagsmith feature linked:
Segment
|
Flagsmith Feature
|
The feature flag
|
api/integrations/github/views.py
Outdated
try: | ||
return func(*args, **kwargs) | ||
except requests.RequestException as e: | ||
logger.error(f"{error or default_error} Error: {str(e)}") |
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.
logger.error(f"{error or default_error} Error: {str(e)}") | |
logger.error(f"{error or default_error} Error: {str(e)}", exc_info=e) |
Thanks for submitting a PR! Please check the boxes below:
pre-commit
to check lintingdocs/
if required so people know about the feature!Changes
/app/installations/{installation_id}
integration/github/client.py
file.How did you test this code?