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

fetch gitea topics via extra request per repo #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

geoheelias
Copy link
Contributor

I left a TODO in the code, which explains the downside to this as it currently is.

@geoheelias geoheelias requested a review from puhoy July 12, 2021 18:15
@geoheelias geoheelias self-assigned this Jul 12, 2021
for repo_dict in repo_list:
# TODO unless we request topics in parallel, this slows down crawling by about 20x
# TODO if not acceptable over time, subprocess each request
repo_dict[GITEA_REPO_TOPICS_KEY] = self.crawl_repo_topics(repo_dict=repo_dict)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The "exclude_topics" check allows us to control this via the indexer if we want, later on, as the state dict contain all keys from the block dict.

@puhoy puhoy changed the base branch from master to main August 13, 2021 17:35
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.

None yet

2 participants