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

Function getEnvironmentIdOptions

frontend/src/utils/expr.ts:38–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36};
37
38export const getEnvironmentIdOptions = (): LabeledOption[] => {
39 const environmentList = appStoreUtilBridge()?.environmentList() ?? [];
40 return environmentList.map((env) => ({
41 label: `${env.title} (${env.id})`,
42 value: env.id,
43 }));
44};
45
46const getProjectIdOption = (proj: Project): LabeledOption => {
47 const projectId = extractProjectResourceName(proj.name);

Callers 2

Calls 1

appStoreUtilBridgeFunction · 0.90

Tested by

no test coverage detected