Dashboard → Applications by month: months labelled \"2026-09\", and months with nothing sent left out #397
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#397
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?
Found on 2026-09-29 in a read-only review of postulo at
95348908d, reading how the insights are built and drawn.Checked again on 2026-10-01 against
mainat0a5cad587: still present.The widget says it exists "so a quiet stretch is visible", but it lists only the months in which something was sent, so a quiet month is simply missing. Its labels are ISO strings (
2026-09) made withstrftime, not month names in the reader's language.applications/analytics.py:541-551(build):TruncMonth("applied_at")grouped by month, then(row["month"].strftime("%Y-%m"), row["count"]) for row in per_month if row["month"];templates/widgets/by_month.html:6-9prints{{ month }}as it comes; the blurb is atapplications/widgets.py:291.YEAR_MONTH_FORMAT. The template lint from #225 checks|dateformats and cannot see a date that arrives as a string. No test mentionsby_month.dateobjects inInsights.by_monthand print them with{{ month|date:"YEAR_MONTH_FORMAT" }}.Related to #225 (closed), which replaced fixed date formats in templates but not this one built in Python.
Done when
tests/test_insights.pycreates applications in January and March and assertsby_monthhas three entries with February at zero, each adate; and renders the widget underfrand asserts it contains "février 2026".