Skip to content

Distinguish HA from non-HA SKUs in JSON output#1270

Merged
rcrowley merged 2 commits into
mainfrom
distinguish-ha-non-ha-in-json
Jun 8, 2026
Merged

Distinguish HA from non-HA SKUs in JSON output#1270
rcrowley merged 2 commits into
mainfrom
distinguish-ha-non-ha-in-json

Conversation

@rcrowley

@rcrowley rcrowley commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

The other output formats do this already but the JSON output just duplicated each object.

This patch adds the same kind of distinguishing fields that other outputy formats use.

The other output formats do this already but the JSON output just
duplicated each object.

This patch adds the same kind of distinguishing fields that other
outputy formats use.
@rcrowley rcrowley requested a review from a team as a code owner June 8, 2026 17:22
@rcrowley

rcrowley commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

This still isn't right, actually. The price on the non-HA SKU is still the price of the HA SKU.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 109152c. Configure here.

Rate: c.rate,
Configuration: c.Configuration,
Replicas: c.Replicas,
}, "", " ")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-HA JSON shows HA price

High Severity

JSON marshaling embeds the shared API ClusterSKU (c.orig) while only adding a sibling Rate field. Table and CSV already use formatClusterFields with ReplicaRate for single-node rows, but JSON still surfaces the HA pricing from the embedded SKU, so non-HA entries keep the HA price (as noted in review).

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 109152c. Configure here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're wrong. The rate is correct for HA and single-node for all three output formats.

@rcrowley rcrowley merged commit 6f0302c into main Jun 8, 2026
4 checks passed
@rcrowley rcrowley deleted the distinguish-ha-non-ha-in-json branch June 8, 2026 23:55
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.

2 participants