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

Function buildRuntimePayload

server/modules/chartRuntimeFilters.js:135–147  ·  view source on GitHub ↗
(filters = [], variables = {})

Source from the content-addressed store, hash-verified

133}
134
135function buildRuntimePayload(filters = [], variables = {}) {
136 const normalizedFilters = dedupeFilters(filters);
137 const normalizedVariables = sortVariableEntries(variables).reduce((acc, [key, value]) => {
138 acc[key] = value;
139 return acc;
140 }, {});
141
142 return {
143 filters: normalizedFilters,
144 variables: normalizedVariables,
145 hasRuntimeFilters: normalizedFilters.length > 0 || Object.keys(normalizedVariables).length > 0,
146 };
147}
148
149function classifyRuntimePayload(filters = [], variables = {}) {
150 const normalizedPayload = buildRuntimePayload(filters, variables);

Callers 1

classifyRuntimePayloadFunction · 0.85

Calls 2

dedupeFiltersFunction · 0.85
sortVariableEntriesFunction · 0.85

Tested by

no test coverage detected