Visitor charts silently drop the most recent day of GA data

Đang mở
#946 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
html, python
Lĩnh vực
data-visualization

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).

Ngôn ngữ chính
HTML
Star
42
Fork
33
Merge trung bình
17 giờ 18 phút
Pull request đã merge (30 ngày)
111

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của forrtproject/forrtproject.github.io

Tất cả issue của forrtproject/forrtproject.github.io

Issue tương tự

Thêm issue về Data Visualization

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.