MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / absoluteClusterPath

Function absoluteClusterPath

console/src/platform/routeHelpers.ts:32–35  ·  view source on GitHub ↗
(
  regionSlug: string,
  cluster: ClusterPathParams,
)

Source from the content-addressed store, hash-verified

30};
31
32export const absoluteClusterPath = (
33 regionSlug: string,
34 cluster: ClusterPathParams,
35) => `${regionPath(regionSlug)}/clusters/${relativeClusterPath(cluster)}`;
36
37export const relativeClusterPath = (cluster: ClusterPathParams) =>
38 `${cluster.id}/${encodeURIComponent(cluster.name)}`;

Callers 8

ClusterMetricsInnerFunction · 0.90
ClusterFreshnessTableFunction · 0.90
ObjectClusterFunction · 0.90
ClusterNameDetailItemFunction · 0.90
ClusterCellFunction · 0.90
ObjectDetailsCardFunction · 0.90
ClusterMetricCardFunction · 0.90

Calls 2

regionPathFunction · 0.85
relativeClusterPathFunction · 0.85

Tested by

no test coverage detected