isProjectAddonVariantMeta() — supabase Function Reference
Architecture documentation for the isProjectAddonVariantMeta() function in DiskManagement.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 72292d0f_dece_a8e4_441d_d080acc0d2c5["isProjectAddonVariantMeta()"] 615adce6_538e_53e8_d90c_1aa23c10d40c["getAvailableComputeOptions()"] 615adce6_538e_53e8_d90c_1aa23c10d40c -->|calls| 72292d0f_dece_a8e4_441d_d080acc0d2c5 style 72292d0f_dece_a8e4_441d_d080acc0d2c5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/DiskManagement/DiskManagement.utils.ts lines 185–208
const isProjectAddonVariantMeta = (meta: unknown): meta is ProjectAddonVariantMeta => {
if (typeof meta !== 'object' || meta === null) return false
const obj = meta as Record<string, unknown>
// Validate supported_cloud_providers is an array if present (used at line 200)
if ('supported_cloud_providers' in obj && !Array.isArray(obj.supported_cloud_providers)) {
return false
}
// Check for at least one expected property to ensure it's likely a real ProjectAddonVariantMeta
const hasExpectedProperty =
'cpu_cores' in obj ||
'memory_gb' in obj ||
'cpu_dedicated' in obj ||
'baseline_disk_io_mbs' in obj ||
'max_disk_io_mbs' in obj ||
'connections_direct' in obj ||
'connections_pooler' in obj ||
'backup_duration_days' in obj ||
'supported_cloud_providers' in obj
return hasExpectedProperty
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does isProjectAddonVariantMeta() do?
isProjectAddonVariantMeta() is a function in the supabase codebase.
What calls isProjectAddonVariantMeta()?
isProjectAddonVariantMeta() is called by 1 function(s): getAvailableComputeOptions.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free