MCPcopy
hub / github.com/chartbrew/chartbrew / updateRunContext

Function updateRunContext

server/modules/updateAudit.js:401–416  ·  view source on GitHub ↗
(traceContext, values = {})

Source from the content-addressed store, hash-verified

399}
400
401async function updateRunContext(traceContext, values = {}) {
402 if (!traceContext) {
403 return null;
404 }
405
406 const context = cloneTraceContext(traceContext);
407 Object.assign(context, values);
408
409 const persistedValues = { ...values };
410 if (persistedValues.summary !== undefined) {
411 persistedValues.summary = sanitizePayload(persistedValues.summary);
412 }
413
414 await persistRun(context, persistedValues);
415 return context;
416}
417
418async function startEvent(traceContext, stage, payload = {}, status = "started") {
419 if (!traceContext) {

Callers 6

completeRunFunction · 0.85
failRunFunction · 0.85
addDashboardToQueueFunction · 0.85
addChartsToQueueFunction · 0.85
ensureTraceContextFunction · 0.85
ensureTraceContextFunction · 0.85

Calls 3

cloneTraceContextFunction · 0.85
sanitizePayloadFunction · 0.85
persistRunFunction · 0.85

Tested by

no test coverage detected