-
Notifications
You must be signed in to change notification settings - Fork 846
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
Migrate messages and events to use github data access #2837
Conversation
Signed-off-by: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
@@ -5,7 +5,7 @@ | |||
from augur.tasks.init.celery_app import celery_app as celery | |||
from augur.tasks.init.celery_app import AugurCoreRepoCollectionTask | |||
from augur.application.db.data_parse 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.
[pylint] reported by reviewdog 🐶
W0401: Wildcard import augur.application.db.data_parse (wildcard-import)
all_data += page_data | ||
|
||
return all_data | ||
return list(github_data_access.paginate_resource(url)) | ||
|
||
def process_events(events, task_name, repo_id, logger): |
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.
[pylint] reported by reviewdog 🐶
R0914: Too many local variables (31/30) (too-many-locals)
all_data += page_data | ||
|
||
return all_data | ||
return list(github_data_access.paginate_resource(url)) | ||
|
||
def process_events(events, task_name, repo_id, logger): |
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.
[pylint] reported by reviewdog 🐶
R0915: Too many statements (56/50) (too-many-statements)
@@ -4,7 +4,7 @@ | |||
from augur.tasks.init.celery_app import celery_app as celery | |||
from augur.tasks.init.celery_app import AugurCoreRepoCollectionTask | |||
from augur.application.db.data_parse 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.
[pylint] reported by reviewdog 🐶
W0401: Wildcard import augur.application.db.data_parse (wildcard-import)
Signed-off-by: Andrew Brain <[email protected]>
@@ -98,7 +98,7 @@ def make_request(self, url, method="GET", timeout=100): | |||
|
|||
with httpx.Client() as client: | |||
|
|||
response = client.request(method=method, url=url, timeout=timeout, follow_redirects=True) | |||
response = client.request(method=method, url=url, auth=self.key_manager, timeout=timeout, follow_redirects=True) | |||
|
|||
if response.status_code in [403, 429]: |
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.
[pylint] reported by reviewdog 🐶
R1720: Unnecessary "elif" after "raise", remove the leading "el" from "elif" (no-else-raise)
Description
Signed commits