feat(integrations): finish a github star history backfill over later syncs
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start with src/lib/adapters/github/repositories.ts and trace the sync cursor and the STAR_HISTORY_BUDGET_MS limit, then inspect the cursor schema and metric validation. Read the GitHub provider docs and existing adapter tests before changing behavior. Add coverage for repositories left pending across syncs and validation limited to accounts with pending history; done when all histories eventually load within each sync's budget and the past totals are stated afterward.
Written by the indexing model from the issue text.
Description
Context
Found by the Fable pre-production review on 2026-12-02 (main at cedc1914; every line reference below re-checked on main at cde5aa3b). Source: product triage report, new issue 6.
An account's first GitHub sync reads star history in place of forks, one page per repository, within a 20 second budget (STAR_HISTORY_BUDGET_MS, src/lib/adapters/github/repositories.ts:66, used at :568-597). Past star totals are stated only when every repository's history was read in that budget (docs/providers/github.md:257); the budget fits about 4 busy repositories with read time unmeasured (github.md:239).
Impact: low. An installation with more starred repositories than the budget reaches gets no past star totals and waits 7 to 30 days for "stars gained" and the year card to fill from live readings.
Plan
- Keep repositories whose history was not reached as pending in the sync cursor.
- Read pending histories on later syncs, within the same budget, oldest pending first.
- State the past totals once every repository's history is read.
- Allow those past points in validation only for an account with pending history.
Acceptance criteria
- Repositories not reached stay pending and are read on later syncs.
- Past totals are stated once all are read (fixture test with more repositories than one budget reaches).
- Validation accepts those points only for an account with pending history.
- Playwright e2e: none needed, no screen changes.
Files and areas
src/lib/adapters/github/repositories.ts, the cursor schema, src/lib/adapters/metrics.ts validation if needed, docs/providers/github.md, tests.
Non-goals: the fork and activity budgets, the sync deadline (#{n4}).
Verification
npm run typecheck, npm run lint, npx vitest run src/lib/adapters/github.
Branch: <issue-number>-github-star-history-resume
Model: anthropic/claude-opus-5-5 | Reasoning effort: unknown
- Dominant language
- TypeScript
- Stars
- 13
- Forks
- 2
- Avg merge
- 5h 20m
- Merged PRs (30d)
- 287
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from eddiejaoude/StackDash
-
area: integrations documentation priority: P2 size: XS
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
eddiejaoude/StackDash#798 ·
Maintainers usually reply within 1 day
-
area: ops documentation priority: P3 size: XS
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
eddiejaoude/StackDash#796 ·
Maintainers usually reply within 1 day
-
area: docs documentation impact: low priority: P3 size: XS
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
eddiejaoude/StackDash#790 ·
Maintainers usually reply within 1 day
-
area: ops bug impact: low priority: P3 size: XS
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
eddiejaoude/StackDash#785 ·
Maintainers usually reply within 1 day
-
area: connections enhancement impact: low priority: P3 size: XS
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
eddiejaoude/StackDash#768 ·
Maintainers usually reply within 1 day
All issues in eddiejaoude/StackDash
Similar issues
-
bot:ai-assisted component:midnight-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
midnightntwrk/midnight-js#1790 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
area:vscode bug has repro platform:macos platform:vscode regression
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
anthropics/claude-code#113502 ·
-
Add: Rajdhani TV HDOpencheck:passed streams:add
Difficulty 1/5 Under an hour Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
effort/l priority/p1 risk/high triage/core
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
iflytek/skillhub#1188 · 1 comment ·
Maintainers usually reply within 1 day