Visitor charts silently drop the most recent day of GA data
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- html, python
- Ambito
- data-visualization
Direzione di ricerca
Read layouts/shortcodes/ga_daily_visitors.html and layouts/shortcodes/ga_daily_visitors_yearly.html around the dailyData.pop() calls, then check how the charts are rendered on the page. Decide whether to document the omitted latest day in code and on the chart, or confirm the current behavior is intentional; the issue says removing pop() alone would expose provisional data.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
layouts/shortcodes/ga_daily_visitors.html:9 and layouts/shortcodes/ga_daily_visitors_yearly.html:11 sort the data and then call dailyData.pop(), which removes the most recent date from the visitor charts. Nothing in the code or on the page says so.
The drop looks deliberate and may be correct. scripts/download_ga_data.py requests end_date="today", and the workflow runs just after midnight UTC, so the last row is the day that has just ended. That day's figure can be provisional: comparing the yearly series in the 1 Oct and 1 Nov 2026 files, the only overlapping date that changed is 30 Sep, the last day of the 1 Oct file, which went from 508 to 526 users.
Do not simply remove pop(), because the chart would then show an undercounted last day. Options: add a code comment and a chart note explaining the drop, or close this as intended behaviour. Requesting end_date="yesterday" would not help on its own, since a run just after midnight would still fetch the day that has just ended.
Found during PR triage (#936 did not introduce this).
- Lingua principale
- HTML
- Stelle
- 42
- Fork
- 33
- Merge medio
- 17h 18m
- PR unite (30g)
- 111
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 forrtproject/forrtproject.github.io
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
forrtproject/forrtproject.github.io#1035 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
forrtproject/forrtproject.github.io#987 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
forrtproject/forrtproject.github.io#977 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
forrtproject/forrtproject.github.io#947 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
forrtproject/forrtproject.github.io#933 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di forrtproject/forrtproject.github.io
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
cofade/open-garden-planner#789 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
tylermorganwall/rayshader#352 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
microsoft/data-formulator#513 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100