-
-
Notifications
You must be signed in to change notification settings - Fork 771
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
Refactor GH issue details endpoint #1780
Conversation
app/avatar/models.py
Outdated
@@ -29,7 +29,7 @@ | |||
from django_extensions.db.fields import AutoSlugField | |||
from easy_thumbnails.fields import ThumbnailerImageField | |||
from economy.models import SuperModel | |||
from github.utils import get_user | |||
from git.utils import get_user |
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.
F401 'git.utils.get_user' imported but unused
app/dashboard/helpers.py
Outdated
@@ -38,7 +38,7 @@ | |||
) | |||
from dashboard.tokens import addr_to_token | |||
from economy.utils import convert_amount | |||
from github.utils import _AUTH | |||
from git.utils import _AUTH, get_gh_issue_details, get_url_dict, github_connect, issue_number, org_name, repo_name |
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.
F401 'git.utils._AUTH' imported but unused
F401 'git.utils.github_connect' imported but unused
F401 'git.utils.issue_number' imported but unused
F401 'git.utils.org_name' imported but unused
F401 'git.utils.repo_name' imported but unused
app/dashboard/tip_views.py
Outdated
@@ -32,7 +32,7 @@ | |||
from dashboard.utils import generate_pub_priv_keypair, get_web3, has_tx_mined | |||
from dashboard.views import record_user_action | |||
from gas.utils import recommend_min_gas_price_to_confirm_in_time | |||
from github.utils import ( | |||
from git.utils import ( |
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.
F401 'git.utils.get_auth_url' imported but unused
F401 'git.utils.get_github_user_data' imported but unused
F401 'git.utils.is_github_token_valid' imported but unused
app/dashboard/views.py
Outdated
@@ -42,7 +42,7 @@ | |||
from avatar.utils import get_avatar_context | |||
from economy.utils import convert_amount | |||
from gas.utils import conf_time_spread, gas_advisories, gas_history, recommend_min_gas_price_to_confirm_in_time | |||
from github.utils import ( | |||
from git.utils import ( |
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.
F401 'git.utils.get_github_emails' imported but unused
F401 'git.utils.get_github_primary_email' imported but unused
@@ -22,7 +22,7 @@ | |||
from django.core.management.base import BaseCommand | |||
from django.utils import timezone | |||
|
|||
from github.utils import ( | |||
from git.utils import ( |
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.
F401 'git.utils.post_issue_comment' imported but unused
Codecov Report
@@ Coverage Diff @@
## master #1780 +/- ##
=========================================
- Coverage 28.88% 28.6% -0.29%
=========================================
Files 128 128
Lines 10073 10051 -22
Branches 1326 1324 -2
=========================================
- Hits 2910 2875 -35
- Misses 7057 7075 +18
+ Partials 106 101 -5
Continue to review full report at Codecov.
|
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
response['title'] = response['title'] | ||
|
||
keywords = [] | ||
|
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.
🔥
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.
🔥 🔥
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 for your contribution @mbeacom
Great! I'll close out 1772 |
Description
The goal of this PR is to introduce
pygithub
and refactor thedashboard.helpers.issue_details
view.get_issue_details
get_issue_details
where/pull
urls wouldn't return results, but rather an error.Checklist
Affected core subsystem(s)
dashboard helpers, issue details
Testing
Locally
Refers/Fixes
Ref #1772