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

chore(github): Remove debugging code #83986

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

armenzg
Copy link
Member

@armenzg armenzg commented Jan 24, 2025

This code was added to investigate an edge case.

An organization with fewer repositories than the maximum page number would not add a Link header. In other words, we only see when a GitHub org has less than 100 repositories.

Fixes SENTRY-3M8Z

This code was added in order to investigate an edge case.

When an organization has less repositories than the max number of the page, it would not add a `Link` header.
In other words, we only see when a GitHub org has less than 100 repositories.
@armenzg armenzg self-assigned this Jan 24, 2025
@armenzg armenzg requested review from a team as code owners January 24, 2025 13:55
@armenzg armenzg enabled auto-merge (squash) January 24, 2025 13:55
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 24, 2025
@@ -504,8 +504,6 @@ def get_repos(self, fetch_max_pages: bool = False) -> list[dict[str, Any]]:
It uses page_size from the base class to specify how many items per page.
The upper bound of requests is controlled with self.page_number_limit to prevent infinite requests.
"""
# XXX: In order to speed up this function we could use ThreadPoolExecutor
# to fetch repositories in parallel. See src/sentry/utils/snuba.py
Copy link
Member Author

Choose a reason for hiding this comment

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

This is already mentioned inside of get_with_pagination
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant