Skip to content
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

Merged
merged 3 commits into from
Jun 29, 2024

Conversation

ABrain7710
Copy link
Contributor

Description

  • Migrate messages collection to use github data access
  • Migrate events collection to use github data access

Signed commits

  • Yes, I signed my commits.

@ABrain7710 ABrain7710 requested a review from sgoggins June 29, 2024 15:03
@@ -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 *

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):

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):

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 *

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]:

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)

@ABrain7710 ABrain7710 marked this pull request as ready for review June 29, 2024 19:26
@sgoggins sgoggins merged commit 97cbf45 into dev Jun 29, 2024
9 checks passed
@ABrain7710 ABrain7710 deleted the migrate-more-things-to-github-data-access branch August 7, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants