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

Remove GitHub paginator and retrieve_dict_from_endpoint references #2878

Merged
merged 18 commits into from
Aug 5, 2024

Conversation

ABrain7710
Copy link
Contributor

Description

  • Migrate rest of github paginator and retrieve_dict_from_endpoint uses over to the new github_data_access.py

Signed commits

  • Yes, I signed my commits.

sgoggins and others added 15 commits July 17, 2024 11:20
Signed-off-by: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
Raise exceptions on graphql errors
Signed-off-by: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
augur/tasks/github/facade_github/core.py Show resolved Hide resolved
import logging


from typing import List, Optional, Union, Generator, Tuple
from typing import Optional
from urllib.parse import urlencode, urlparse, parse_qs, urlunparse

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pylint] reported by reviewdog 🐶
W0611: Unused urlencode imported from urllib.parse (unused-import)

import logging


from typing import List, Optional, Union, Generator, Tuple
from typing import Optional
from urllib.parse import urlencode, urlparse, parse_qs, urlunparse

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pylint] reported by reviewdog 🐶
W0611: Unused urlparse imported from urllib.parse (unused-import)

import logging


from typing import List, Optional, Union, Generator, Tuple
from typing import Optional
from urllib.parse import urlencode, urlparse, parse_qs, urlunparse

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pylint] reported by reviewdog 🐶
W0611: Unused parse_qs imported from urllib.parse (unused-import)

import logging


from typing import List, Optional, Union, Generator, Tuple
from typing import Optional
from urllib.parse import urlencode, urlparse, parse_qs, urlunparse

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pylint] reported by reviewdog 🐶
W0611: Unused urlunparse imported from urllib.parse (unused-import)

Signed-off-by: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
@@ -3,7 +3,8 @@
import time
import sqlalchemy as s
from augur.application.db.models import *
from augur.tasks.github.util.github_paginator import hit_api, process_dict_response, retrieve_dict_from_endpoint
from augur.tasks.github.util.github_paginator import hit_api, process_dict_response
from augur.tasks.github.util.github_data_access import GithubDataAccess, UrlNotFoundException

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pylint] reported by reviewdog 🐶
W0611: Unused UrlNotFoundException imported from augur.tasks.github.util.github_data_access (unused-import)

@@ -3,7 +3,8 @@
import time
import sqlalchemy as s
from augur.application.db.models import *
from augur.tasks.github.util.github_paginator import hit_api, process_dict_response, retrieve_dict_from_endpoint
from augur.tasks.github.util.github_paginator import hit_api, process_dict_response
from augur.tasks.github.util.github_data_access import GithubDataAccess, UrlNotFoundException
# Debugger
import traceback

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pylint] reported by reviewdog 🐶
W0611: Unused import traceback (unused-import)

Signed-off-by: Andrew Brain <[email protected]>
@ABrain7710 ABrain7710 marked this pull request as ready for review August 4, 2024 22:34
Copy link
Member

@sgoggins sgoggins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for testing

@sgoggins sgoggins merged commit 925e782 into dev Aug 5, 2024
9 checks passed
@Ulincsys Ulincsys deleted the remove_github_paginator branch August 5, 2024 22:39
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