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

Method buildChartVersion

server/modules/runtimeCache.js:581–771  ·  view source on GitHub ↗
(chartId, timezone = "")

Source from the content-addressed store, hash-verified

579 }
580
581 async buildChartVersion(chartId, timezone = "") {
582 const chartFingerprint = await db.Chart.findOne({
583 where: { id: chartId },
584 attributes: [
585 "id",
586 "project_id",
587 "name",
588 "type",
589 "subType",
590 "displayLegend",
591 "pointRadius",
592 "dataLabels",
593 "startDate",
594 "endDate",
595 "dateVarsFormat",
596 "includeZeros",
597 "currentEndDate",
598 "fixedStartDate",
599 "timeInterval",
600 "mode",
601 "maxValue",
602 "minValue",
603 "disabledExport",
604 "onReport",
605 "xLabelTicks",
606 "stacked",
607 "horizontal",
608 "showGrowth",
609 "invertGrowth",
610 "isLogarithmic",
611 "ranges",
612 "updatedAt",
613 ],
614 include: [{
615 model: db.ChartDatasetConfig,
616 attributes: [
617 "id",
618 "dataset_id",
619 "xAxis",
620 "xAxisOperation",
621 "yAxis",
622 "yAxisOperation",
623 "dateField",
624 "dateFormat",
625 "conditions",
626 "formula",
627 "datasetColor",
628 "fillColor",
629 "fill",
630 "multiFill",
631 "legend",
632 "pointRadius",
633 "excludedFields",
634 "sort",
635 "columnsOrder",
636 "order",
637 "maxRecords",
638 "goal",

Callers 1

updateChartDataMethod · 0.80

Calls 3

hashMethod · 0.95
filterMethod · 0.80
findAllMethod · 0.45

Tested by

no test coverage detected