statistics: should scheduled closures make a period partial and suppress comparisons? #100
Labels
No labels
blocked
bug
enhancement
high-priority
low-priority
needs-info
needs-triage
ready-for-agent
ready-for-human
referenced
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gabogg/hikcentral#100
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Split out of the pass-2 review of #92. Needs a product decision: the implementing agent chose the rule, not the maintainer.
Question
#92 suppresses
change_percent(reasonPARTIAL_PERIOD) whenever the current or reference period is partial, meaningcovered_days < business_days. Suppressing is honest: the reference sum is a raw total, so the two sides can't be compared.However, a scheduled-closed day (holiday marked "Cerrado") has no counted events, so it makes the whole week or month partial. As a result:
Options
business_days, so a closure doesn't make a period partial.Code:
analytics_service.py(statistics_visitor_comparison_async, entrances comparisons,PeriodQuality.partial).🤖 Generated with Claude Code
Resolved in the 2026-09-25 grilling session: see #103 (Closed Days are not business days) and #104 (daily-average comparison above a configurable coverage threshold). Closing.
🤖 Generated with Claude Code