MCPcopy Create free account
hub / github.com/bytebase/bytebase / workspaceCacheScope

Function workspaceCacheScope

frontend/src/utils/storage-keys.ts:10–13  ·  view source on GitHub ↗
(
  isSaaS: boolean,
  workspace: string
)

Source from the content-addressed store, hash-verified

8// database / environment names and route paths are unique only within a
9// workspace). Returns "" for self-host, the workspace name for SaaS.
10export const workspaceCacheScope = (
11 isSaaS: boolean,
12 workspace: string
13): string => (isSaaS && workspace ? workspace : "");
14
15// Joins a base key with an optional workspace scope segment and the rest.
16// When scope is "" the key is byte-identical to the pre-scoping form (so

Callers 10

IAMRemindDialogFunction · 0.90
lastProjectKeyFunction · 0.90
currentScopeFunction · 0.90
hydrateProjectTabsFunction · 0.90
getWorkspaceCacheScopeFunction · 0.90
readLastVisitFunction · 0.90
useRecentVisitFunction · 0.90
useRecentProjectsFunction · 0.90
currentScopeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected