Skip to content

feat(stats): count every daily report from one - #120

Merged
frahlg merged 1 commit into
mainfrom
feat/stats-count-from-one
Nov 8, 2026
Merged

frahlg merged 1 commit into
mainfrom
feat/stats-count-from-one

Conversation

@frahlg

@frahlg frahlg commented Nov 8, 2026

Copy link
Copy Markdown
Member

Problem

The owner dropped the minimum group size for the anonymous daily report on 8 November 2026, so a driver version, price zone or battery size counts from one home. FTW Cloud's feed will say minimum: 1, and this Worker refuses anything but 5 or 10.

Change

  • parseFleet accepts a minimum of 1, and still accepts 5 and 10.
  • PUBLIC_MIN_REPORTS is 1 in production. The tests keep 5, so the floor's own logic stays covered, with one new test for a minimum of 1.
  • The dashboard says every daily report counts.

Deploy this Worker before the paired FTW Cloud change, or it will reject the new feed. Paired with srcfl/ftw#1989 and a ftw-cloud PR.

Evidence

npm run verify passes; npm run test:stats 49 passed.

🤖 Generated with Claude Code

The owner dropped the minimum group size for the daily report on 8
November 2026. The Worker accepts FTW Cloud's feed with a minimum of 1
and shows what it holds. Older feeds with 5 or 10 still parse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T15:09:11.342391Z 0b4f4ad PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
ftw-webapp 0b4f4ad Commit Preview URL

Branch Preview URL
Nov 08 2026, 03:07 PM

@frahlg
frahlg merged commit 9d378a0 into main Nov 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant