MCPcopy
hub / github.com/opentrace/opentrace / collectPipeline

Function collectPipeline

ui/src/components/pipeline/pipeline.ts:69–89  ·  view source on GitHub ↗
(
  input: LoadingInput,
  ctx: PipelineContext,
  store?: Store,
)

Source from the content-addressed store, hash-verified

67
68/** Collect all events and return aggregated nodes/relationships (convenience for tests). */
69export function collectPipeline(
70 input: LoadingInput,
71 ctx: PipelineContext,
72 store?: Store,
73): {
74 events: PipelineEvent[];
75 nodes: GraphNode[];
76 relationships: GraphRelationship[];
77} {
78 const events: PipelineEvent[] = [];
79 const nodes: GraphNode[] = [];
80 const relationships: GraphRelationship[] = [];
81
82 for (const event of runPipeline(input, ctx, store)) {
83 events.push(event);
84 if (event.nodes) nodes.push(...event.nodes);
85 if (event.relationships) relationships.push(...event.relationships);
86 }
87
88 return { events, nodes, relationships };
89}

Callers 2

pipeline.test.tsFile · 0.90
runBothFunction · 0.90

Calls 2

runPipelineFunction · 0.85
pushMethod · 0.80

Tested by 1

runBothFunction · 0.72