Home / Function/ getIsInTransition() — supabase Function Reference

getIsInTransition() — supabase Function Reference

Architecture documentation for the getIsInTransition() function in ReadReplicas.utils.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  a0154dcb_190a_86d1_30aa_19335df1fc1d["getIsInTransition()"]
  51db4f53_58c2_7ad8_2211_ae5a7c3efd62["ReadReplicaRow()"]
  51db4f53_58c2_7ad8_2211_ae5a7c3efd62 -->|calls| a0154dcb_190a_86d1_30aa_19335df1fc1d
  style a0154dcb_190a_86d1_30aa_19335df1fc1d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/Database/Replication/ReadReplicas/ReadReplicas.utils.ts lines 4–24

export const getIsInTransition = ({
  initStatus,
  status,
}: {
  initStatus?: string
  status?: string
}) => {
  return (
    (
      [
        REPLICA_STATUS.UNKNOWN,
        REPLICA_STATUS.COMING_UP,
        REPLICA_STATUS.GOING_DOWN,
        REPLICA_STATUS.RESTORING,
        REPLICA_STATUS.RESTARTING,
        REPLICA_STATUS.RESIZING,
        REPLICA_STATUS.INIT_READ_REPLICA,
      ] as string[]
    ).includes(status ?? '') || initStatus === ReplicaInitializationStatus.InProgress
  )
}

Subdomains

Called By

Frequently Asked Questions

What does getIsInTransition() do?
getIsInTransition() is a function in the supabase codebase.
What calls getIsInTransition()?
getIsInTransition() is called by 1 function(s): ReadReplicaRow.

Analyze Your Own Codebase

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

Try Supermodel Free