Skip to content

fix(azure): add ClusterRegionWithZones type and display AZ count in region selector#2425

Closed
Guimove wants to merge 3 commits intostagingfrom
fix/azure-vm-availability-and-zone-configuration
Closed

fix(azure): add ClusterRegionWithZones type and display AZ count in region selector#2425
Guimove wants to merge 3 commits intostagingfrom
fix/azure-vm-availability-and-zone-configuration

Conversation

@Guimove
Copy link
Contributor

@Guimove Guimove commented Feb 26, 2026

Summary

  • Add ClusterRegionWithZones interface extending ClusterRegion with optional zones field
  • Update region selector dropdown to display AZ count (e.g., "Dublin (northeurope) — 3 AZs")

Follow-up

Remove ClusterRegionWithZones type after updating qovery-typescript-axios to include zones natively.

Files changed

  • libs/shared/interfaces/src/lib/types/cluster-region-with-zones.type.ts (new)
  • libs/shared/interfaces/src/index.ts
  • libs/pages/clusters/src/lib/ui/page-clusters-create/step-general/step-general.tsx

Test plan

  • Region selector displays zone count for Azure regions
  • No regression for AWS/GCP/SCW region display

…egion selector

Add forward-compatible ClusterRegionWithZones interface extending
ClusterRegion with an optional zones field. Update the region selector
dropdown to display zone count when available from the API. The type
augmentation can be removed once qovery-typescript-axios is regenerated
from the updated OpenAPI spec.
@codecov
Copy link

codecov bot commented Feb 26, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 47.17%. Comparing base (ac5bc33) to head (bc7412f).

Files with missing lines Patch % Lines
...page-clusters-create/step-general/step-general.tsx 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           staging    #2425      +/-   ##
===========================================
+ Coverage    47.15%   47.17%   +0.02%     
===========================================
  Files         1252     1259       +7     
  Lines        23142    23328     +186     
  Branches      6832     6908      +76     
===========================================
+ Hits         10912    11005      +93     
- Misses       10151    10204      +53     
- Partials      2079     2119      +40     
Flag Coverage Δ
unittests 47.17% <75.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Update qovery-typescript-axios to 1.1.834 which includes zones on
ClusterRegion natively. Remove the temporary extended type.
Displaying zone count adds noise without value — AWS doesn't show it
either and Azure regions almost all have 3 AZs.
@Guimove Guimove closed this Feb 27, 2026
@Guimove Guimove deleted the fix/azure-vm-availability-and-zone-configuration branch February 27, 2026 11:18
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