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

Function buildFilterKey

client/src/modules/chartRuntimeFilters.js:43–56  ·  view source on GitHub ↗
(filter)

Source from the content-addressed store, hash-verified

41}
42
43function buildFilterKey(filter) {
44 return JSON.stringify({
45 origin: filter.origin || "dashboard",
46 scope: filter.scope || "chart",
47 cdcId: filter.cdcId ?? null,
48 type: filter.type || "field",
49 field: filter.field || null,
50 operator: filter.operator || null,
51 value: normalizeValue(filter.value),
52 startDate: filter.startDate || null,
53 endDate: filter.endDate || null,
54 exposed: Boolean(filter.exposed),
55 });
56}
57
58function normalizeDashboardFilter(filter, chartId) {
59 if (!filter) return null;

Callers 1

buildChartRuntimeRequestFunction · 0.85

Calls 1

normalizeValueFunction · 0.70

Tested by

no test coverage detected