MCPcopy Index your code
hub / github.com/bytebase/bytebase / DefaultProjectID

Function DefaultProjectID

backend/common/const.go:30–32  ·  view source on GitHub ↗

DefaultProjectID returns the default project resource ID for a workspace.

(workspaceID string)

Source from the content-addressed store, hash-verified

28
29// DefaultProjectID returns the default project resource ID for a workspace.
30func DefaultProjectID(workspaceID string) string {
31 return defaultProjectPrefix + workspaceID
32}
33
34// IsDefaultProject returns whether a project resource ID is the default project.
35// Handles both new format ("default-{workspaceID}") and legacy format ("default").

Callers 6

CreateWorkspaceMethod · 0.92
GetListDatabaseFilterFunction · 0.92
GetDefaultProjectIDMethod · 0.92
GetListProjectFilterFunction · 0.92
TestListDatabaseFilterFunction · 0.92
IsDefaultProjectFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestListDatabaseFilterFunction · 0.74