feat(integrations): finish a github star history backfill over later syncs
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- TypeScript
- Stelle
- 13
- Fork
- 2
- Merge medio
- 5h 20m
- PR unite (30g)
- 287
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di eddiejaoude/StackDash
-
area: integrations documentation priority: P2 size: XS
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
eddiejaoude/StackDash#798 ·
I maintainer di solito rispondono entro 1 giorno
-
area: ops documentation priority: P3 size: XS
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
eddiejaoude/StackDash#796 ·
I maintainer di solito rispondono entro 1 giorno
-
area: docs documentation impact: low priority: P3 size: XS
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
eddiejaoude/StackDash#790 ·
I maintainer di solito rispondono entro 1 giorno
-
area: ops bug impact: low priority: P3 size: XS
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
eddiejaoude/StackDash#785 ·
I maintainer di solito rispondono entro 1 giorno
-
area: connections enhancement impact: low priority: P3 size: XS
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
eddiejaoude/StackDash#768 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di eddiejaoude/StackDash
Issue simili
-
bot:ai-assisted component:midnight-js status:untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
midnightntwrk/midnight-js#1790 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
area:vscode bug has repro platform:macos platform:vscode regression
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
anthropics/claude-code#113502 ·
-
Add: Rajdhani TV HDApertacheck:passed streams:add
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
effort/l priority/p1 risk/high triage/core
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
iflytek/skillhub#1188 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno