Skip to content

fix: groups stats accepts rack ids and returns rack objects#69

Merged
paragmore merged 4 commits intotetherto:developfrom
mukama:fix/groups-stats-racks-regression
Apr 29, 2026
Merged

fix: groups stats accepts rack ids and returns rack objects#69
paragmore merged 4 commits intotetherto:developfrom
mukama:fix/groups-stats-racks-regression

Conversation

@mukama
Copy link
Copy Markdown
Contributor

@mukama mukama commented Apr 28, 2026

Replaces the misleading ?containers= query param with ?racks= and returns per-rack objects matching the shape of /auth/explorer/racks (hashrate/power/efficiency with units).

mukama added 3 commits April 28, 2026 20:20
The aggregation '*_pdu_rack_group_*' is keyed by physical position
(e.g. group-1_1-1), but PR tetherto#59's buildRackList synthesizes ids as
group-X_rack-N. Without translation, every rack reported zero values.
Map each synth id to the Nth real key in its group (sorted), so values
flow through while keeping the PR tetherto#59 id contract intact.
@mukama mukama force-pushed the fix/groups-stats-racks-regression branch from 91d2f3e to dd2e72a Compare April 28, 2026 20:44
@mukama mukama changed the title fix: rename groups stats query param to racks fix: groups stats accepts rack ids and returns rack objects Apr 28, 2026
@paragmore paragmore merged commit 2a67b20 into tetherto:develop Apr 29, 2026
6 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.

3 participants