Community metrics can silently go stale: updatedAt is never rendered and a failed fetch keeps old numbers
Maintainer antworten meist innerhalb von 2 Tagen
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Problem
website/src/data/githubData.json drives the homepage community metrics. It is regenerated at build time by scripts/fetch-github-data.js (npm prebuild), and two things make it impossible to tell fresh data from months-old data:
- A failed fetch keeps the old numbers. The script reads the existing file first and preserves
contributorsandstats; if the API call then fails, it writes the preserved values back and only refreshesupdatedAt. The payload is written unconditionally at the end. - Nothing renders
updatedAt.grep -rn "updatedAt" website/srcreturns no matches.Contributors.tsx:12readscontributors;MonthlyPulse.tsx:7-9readsstats. The timestamp is written, committed, and then never shown.
Evidence (2026-10-14)
- Committed snapshot:
updatedAt 2026-08-01,mergedPRs 136 / openIssues 12 / closedIssues 56. - A fetch run today:
162 / 9 / 77.
Those two states render identically to a visitor. If a fetch fails — rate limiting on an unauthenticated build (local builds here inject 0 env vars, no GITHUB_TOKEN), network hiccup, expired token — the site ships the older numbers with no marker.
Impact
- Visitors cannot judge how current the metrics are.
- Maintainers have no signal that a build silently fell back to a previous snapshot; the site keeps looking healthy.
- The snapshot in the repo is already ~10 weeks old, so the fallback path is a real, not theoretical, state.
Suggested fix
Either or both:
- Render
updatedAtinMonthlyPulseas a "data as of …" line. - Fail (or warn loudly in the build log) when the fetch falls back to the previous snapshot, or when
updatedAtis older than a threshold such as 7 days.
Notes
Independent of the font-loading work in #325. Raised while auditing what writes githubData.json, since npm run build / npm start rewrite that file on every run.
Related: #326 — the same fetch script can render automation accounts as contributors.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 13
- Forks
- 22
- Ø Merge
- 3 T. 2 Std.
- Gemergte PRs (30 T.)
- 14
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus IntersectMBO/developer-experience
-
documentation good first issue stale
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 70/100
IntersectMBO/developer-experience#302 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
stale
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 58/100
IntersectMBO/developer-experience#301 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
The component & design-token baseline for human and agentic developers (spacing, typography, theme, etc)Evtl. wieder frei @IanoNjuguna hat das vor 31 Tagen übernommen, und es ist kein Pull Request offen. Offen
IntersectMBO/developer-experience#300 · 3 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Add CodeQL static analysis workflowEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenstale
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 72/100
IntersectMBO/developer-experience#298 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
documentation enhancement good first issue Medium Priority stale
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 70/100
IntersectMBO/developer-experience#265 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in IntersectMBO/developer-experience
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug category:ai category:devices effort:s
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
LanternOps/breeze#8943 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
-
area:reliability difficulty:easy help wanted points:100 Stellar Wave
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
Divinity-Labs/Lens#341 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag