MCPcopy Create free account
hub / github.com/microsoft/data-formulator / itemsForTrigger

Function itemsForTrigger

src/views/DataThread.tsx:2515–2518  ·  view source on GitHub ↗
(resultTableId: string, interaction: InteractionEntry[] | undefined)

Source from the content-addressed store, hash-verified

2513
2514 // Per-trigger item count = 1 (table) + interaction entries + charts.
2515 const itemsForTrigger = (resultTableId: string, interaction: InteractionEntry[] | undefined): number => {
2516 const charts = chartElements.filter(ce => ce.tableId === resultTableId).length;
2517 return 1 + effectiveEntryCount(interaction) + charts;
2518 };
2519
2520 // Compute per-thread totals up front so we can pick the budget.
2521 const triggersByLeaf: Trigger[][] = [];

Callers 1

computeSplitExtraLeavesFunction · 0.85

Calls 2

effectiveEntryCountFunction · 0.85
filterMethod · 0.80

Tested by

no test coverage detected