Skip to content

Fix analytics role totals for region and area filters - #3

Merged
n30nex merged 1 commit into
masterfrom
codex/analytics-region-counts
Oct 15, 2026
Merged

n30nex merged 1 commit into
masterfrom
codex/analytics-region-counts

Conversation

@n30nex

@n30nex n30nex commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Analytics → Nodes used the API's global role-count metadata even when the node list was filtered by region or area. Role Breakdown now counts the same loaded nodes used for Network Status, so regional totals agree and empty selections show zero counts. Missing and unrecognized roles are grouped as unknown; badges use the shared role colours.

Addresses Kpa-clawbot#2213. This is a focused follow-up based on codex/dev-analytics-readiness, preserving the already deployed asynchronous-rendering and Canadaverse changes.

Local validation passed: all standalone frontend suites, server and ingestor Go suites, 42 analytics lifecycle tests, and eight browser scenarios against an isolated Go/SQLite instance. The regression failed before the fix and passes after it. Full CI also passed both database backends, all browser shards, race checks, and packaged images/startup checks for 73bffc8465760a1f55aeaa016b9d121dbd8d5224.

The tally runs inside the existing O(n) status pass over the node list (capped at 10,000 by fetchAllNodes). It keeps a fixed set of role buckets and adds no requests, dependencies, backend changes, or settings.

Verified deployment

Commit 73bffc8465760a1f55aeaa016b9d121dbd8d5224 is deployed to Canadaverse CoreScope. The public API reports that commit, and the browser-delivered JavaScript hashes match the committed files.

Live checks verified YKF: 28 repeaters + 4 companions + 2 rooms = 34 nodes; YYZ: 60 repeaters + 3 companions + 4 rooms = 67 nodes. Those values are observations at validation time, not fixed network totals. Switching between the regions preserved matching totals with no browser JavaScript errors.

The application is healthy on PostgreSQL, the existing account is preserved, both Canadian MQTT sources are fresh, and write errors are zero. Configuration, theme, memory limits and retention settings were preserved; no other container changed. The previous image and private configuration snapshot remain available for rollback.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 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-14T14:08:18.853772Z 73bffc8 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.

@n30nex
n30nex changed the base branch from codex/dev-analytics-readiness to master October 15, 2026 19:46
@n30nex
n30nex merged commit b5afe55 into master Oct 15, 2026
20 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