Home / Function/ mapAddOnVariantIdToComputeSize() — supabase Function Reference

mapAddOnVariantIdToComputeSize() — supabase Function Reference

Architecture documentation for the mapAddOnVariantIdToComputeSize() function in DiskManagement.utils.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  b53797de_ebc6_57df_780c_1f609f8111e4["mapAddOnVariantIdToComputeSize()"]
  123688a6_401c_ee61_a6d4_f7478222cf84["DiskManagementReviewAndSubmitDialog()"]
  123688a6_401c_ee61_a6d4_f7478222cf84 -->|calls| b53797de_ebc6_57df_780c_1f609f8111e4
  e4f4740e_699b_cee8_77fb_38343fd520bf["IOPSField()"]
  e4f4740e_699b_cee8_77fb_38343fd520bf -->|calls| b53797de_ebc6_57df_780c_1f609f8111e4
  3a156a98_6e20_49a2_bf97_211c04127fcf["ComputeSizeRecommendationSection()"]
  3a156a98_6e20_49a2_bf97_211c04127fcf -->|calls| b53797de_ebc6_57df_780c_1f609f8111e4
  style b53797de_ebc6_57df_780c_1f609f8111e4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/DiskManagement/DiskManagement.utils.ts lines 426–432

export const mapAddOnVariantIdToComputeSize = (
  addonVariantId: ComputeInstanceAddonVariantId = 'ci_nano'
): ComputeInstanceSize => {
  const parsed = computeInstanceAddonVariantIdSchema.safeParse(addonVariantId)
  if (!parsed.success) return addonVariantToComputeSize.ci_nano
  return addonVariantToComputeSize[parsed.data]
}

Subdomains

Frequently Asked Questions

What does mapAddOnVariantIdToComputeSize() do?
mapAddOnVariantIdToComputeSize() is a function in the supabase codebase.
What calls mapAddOnVariantIdToComputeSize()?
mapAddOnVariantIdToComputeSize() is called by 3 function(s): ComputeSizeRecommendationSection, DiskManagementReviewAndSubmitDialog, IOPSField.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free