Skip to content

fix(fleet): publish a day once five boxes report it - #47

Merged
frahlg merged 1 commit into
mainfrom
fleet-minimum-5
Oct 23, 2026
Merged

frahlg merged 1 commit into
mainfrom
fleet-minimum-5

Conversation

@frahlg

@frahlg frahlg commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Problem

GET /v1/fleet/public hides a day, and every label in it, below 10 reports. Fewer than 10 boxes report each day today, so every day is reports: null and stats.ftw.energy shows no installation estimate.

Change

The public group size goes from 10 to 5 (Fredrik, 23 October 2026). A day with fewer than 5 reports stays hidden, and so does each version, driver or other label below 5. The reports are anonymous daily check-ins with no home id. The README says 5.

Pair

srcfl/ftw-webapp#101: the stats Worker accepted only minimum: 10 and would refuse this feed. Its PR accepts 5 or 10 and holds each day to the size the feed names. Deploy the Worker first, then this.

Tests

go test ./internal/fleet/: a day with 4 reports stays hidden, 5 shows, and a label with 4 stays hidden.

🤖 Generated with Claude Code

The public daily-report feed hid every day below 10 reports. The fleet
is still small, so stats.ftw.energy showed nothing. Five is enough for
anonymous reports that carry no home id (Fredrik, 23 October 2026).
Each label is still held to the same size.

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:58:50.211727Z cb3468d 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.

@frahlg
frahlg merged commit 7166804 into main Oct 23, 2026
2 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