Skip to content

Coerce cluster_size to integer#873

Merged
alexey-milovidov merged 1 commit into
mainfrom
cluster-size-int
May 8, 2026
Merged

Coerce cluster_size to integer#873
alexey-milovidov merged 1 commit into
mainfrom
cluster-size-int

Conversation

@alexey-milovidov
Copy link
Copy Markdown
Member

Summary

  • Some historical clickhouse-cloud entries stored cluster_size as a JSON string ("1", "2", "3") while modern ones use plain integers (1, 2, 3). The dashboard treats the two representations as distinct values and renders cluster_size 2 and 3 twice in selectors. This converts all string-numeric cluster_size values to integers across the repo (7,259 files in clickhouse-cloud/).
  • Non-numeric strings ("serverless", "dedicated") are kept as-is — they aren't replica counts.

Test plan

  • jq over the affected files reports type=number for cluster_size everywhere a count is meaningful.
  • Reload the website and confirm cluster_size selector lists each value once.

🤖 Generated with Claude Code

Some historical clickhouse-cloud entries stored cluster_size as a
JSON string ("1", "2", "3") while modern ones use plain integers
(1, 2, 3). The dashboard treats the two representations as distinct
values and renders cluster_size 2 and 3 twice in selectors. Convert
all string-numeric cluster_size values to integers across the repo.
Non-numeric strings (serverless, dedicated) are left alone.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@alexey-milovidov alexey-milovidov self-assigned this May 8, 2026
@alexey-milovidov alexey-milovidov merged commit 153c080 into main May 8, 2026
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