MCPcopy Create free account
hub / github.com/dataform-co/dataform / actionsByTarget

Function actionsByTarget

cli/api/utils/graphs.ts:21–29  ·  view source on GitHub ↗
(compiledGraph: dataform.ICompiledGraph)

Source from the content-addressed store, hash-verified

19}
20
21export function actionsByTarget(compiledGraph: dataform.ICompiledGraph) {
22 const actionsMap = new Map<string, CoreProtoActionTypes>();
23 combineAllActions(compiledGraph)
24 // Required for backwards compatibility with old versions of @dataform/core.
25 .filter(action => !!action.target)
26 .forEach(action => {
27 actionsMap.set(targetStringifier.stringify(action.target), action);
28 });
29}
30
31export function actionsByCanonicalTarget(compiledGraph: dataform.ICompiledGraph) {
32 const actionsMap = new Map<string, CoreProtoActionTypes>();

Callers

nothing calls this directly

Calls 3

combineAllActionsFunction · 0.85
stringifyMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected