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

Function batchConvertParsedExprToCELString

frontend/src/utils/v1/cel.ts:45–60  ·  view source on GitHub ↗
(
  parsedExprList: Expr[]
)

Source from the content-addressed store, hash-verified

43};
44
45export const batchConvertParsedExprToCELString = async (
46 parsedExprList: Expr[]
47): Promise<string[]> => {
48 try {
49 const request = create(BatchDeparseRequestSchema, {
50 expressions: parsedExprList,
51 });
52 const response = await celServiceClientConnect.batchDeparse(request, {
53 contextValues: createContextValues().set(silentContextKey, true),
54 });
55 return response.expressions;
56 } catch (error) {
57 console.error(error);
58 return Array.from({ length: parsedExprList.length }).map((_) => "");
59 }
60};

Callers 7

doConfirmFunction · 0.90
handleSaveFunction · 0.90
createDBGroupSliceFunction · 0.90
handleSubmitFunction · 0.90
handleSubmitFunction · 0.90
handleConfirmFunction · 0.90
buildMaskingExemptionFunction · 0.90

Calls 1

setMethod · 0.45

Tested by

no test coverage detected