MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / takeSnapshot

Method takeSnapshot

server/controllers/ChartController.js:1439–1447  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

1437 }
1438
1439 async takeSnapshot(id) {
1440 const chart = await this.findById(id);
1441
1442 if (!chart?.snapshotToken) {
1443 return Promise.reject("Chart does not have a snapshot token");
1444 }
1445
1446 return snapChart(chart.snapshotToken);
1447 }
1448
1449 /**
1450 * Create a chart with all its chart dataset configs in one go

Callers 6

processAlertFunction · 0.95
updateChartFunction · 0.95
createDashboardChartFunction · 0.45
createTemporaryChartFunction · 0.45
createChartFunction · 0.45
ProjectRoute.jsFile · 0.45

Calls 1

findByIdMethod · 0.95

Tested by

no test coverage detected