Skip to content

fix(stats): take FTW Cloud's group size of five for daily reports - #101

Merged
frahlg merged 6 commits into
mainfrom
stats-fleet-minimum-5
Oct 23, 2026
Merged

frahlg merged 6 commits into
mainfrom
stats-fleet-minimum-5

Conversation

@frahlg

@frahlg frahlg commented Oct 23, 2026

Copy link
Copy Markdown
Member

Problem

srcfl/ftw-cloud#47 lowers FTW Cloud's public group size for anonymous daily reports from 10 to 5, because fewer than 10 boxes report each day and stats.ftw.energy shows no installation estimate. The stats Worker's parseFleet accepted only minimum: 10 and refused any count under 10, so it would reject the new feed.

Change

  • parseFleet accepts a feed whose minimum is 5 or 10, and holds each day and each label to the size the feed names. A feed with any other minimum is still refused.
  • PUBLIC_MIN_REPORTS is 5, and publicMinimum takes values from 5.
  • A test: a feed with minimum 5 passes with a day of 5; a day of 4, or a label of 4, is refused; a minimum of 3 is refused.

Order

Deploy this Worker before srcfl/ftw-cloud#47 reaches production. Until then the cloud still sends minimum 10, which this Worker also accepts.

Tests

Not run locally: the checkout's node_modules lacks @cloudflare/vitest-pool-workers. CI runs npm run test:stats.

🤖 Generated with Claude Code

FTW Cloud lowers its public group size for anonymous daily reports from
10 to 5. The Worker accepted only 10, so it would refuse the new feed.
It now accepts 5 or 10, holds each day and label to the size the feed
names, and shows totals from 5 reports (PUBLIC_MIN_REPORTS).

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

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T13:59:08.840003Z 8c155d6 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.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 23, 2026 •

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 5422dda Commit Preview URL

Branch Preview URL
Oct 23 2026, 02:26 PM

frahlg and others added 2 commits October 23, 2026 16:04
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@frahlg
frahlg merged commit 19d09e9 into main Oct 23, 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