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

Function convertFromCELString

frontend/src/utils/issue/cel.ts:354–367  ·  view source on GitHub ↗
(
  cel: string
)

Source from the content-addressed store, hash-verified

352};
353
354export const convertFromCELString = async (
355 cel: string
356): Promise<ConditionExpression> => {
357 let expr: Expr | undefined;
358 if (cel) {
359 const celExpr = await batchConvertCELStringToParsedExpr([cel]);
360 expr = celExpr[0];
361 }
362 if (!expr) {
363 return {};
364 }
365
366 return convertFromExpr(expr);
367};
368
369export const batchConvertFromCELString = async (
370 cels: string[]

Callers 1

Calls 2

convertFromExprFunction · 0.85

Tested by

no test coverage detected