Feat/repository hydration - #16
Merged
Merged
Conversation
Search pages carry only the discovery fields because every added field pushes the query past GitHub's timeout. The collected node IDs now go to nodes(ids:) in batches of 50 with the evidence selection, which fills 14 more TopicProject fields: created_at, pushed_at, is_archived, has_issues_enabled, license_spdx_id, default_branch, last_commit_at, latest_release_at, watchers_count, open_issues_count, open_good_first_issue_count, open_pr_count, language_bytes and has_contributing_guide. A batch that still fails after githubkit's retries splits in two. A half of 25 that fails leaves its repositories with null evidence instead of failing the topic. is_archived and has_issues_enabled become bool | None so an unhydrated project cannot read as evidence. GitHubClient.graphql wraps every call and retries the empty 200 body GitHub returns on some timed-out queries, which githubkit surfaces as pydantic.ValidationError and does not retry. One such response on a javascript search page ended the first full sweep after 10 topics. Full sweep: 22 topics, 9,587 projects, all hydrated, 59 minutes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014RYYuZDX8ERptcuFR53iA8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Describe the focused change and the OSS investment decision it improves.
Evidence and design
Link the issue, product-spec section, fixture, evidence, or architectural decision behind the
change. Explain important tradeoffs and why the selected scope is appropriate.
Validation
uv run ruff check .uv run ruff format --check .uv run mypy srcuv run pytestuv run contribution-compass sitewhen views or schemas changeProject invariants