Documentation
¶
Overview ¶
Package flowcompare compares two versions of a script's flow graph (#1908): the newer version's diagram marked with what it reads, writes and produces that the older did not, which is what a reviewer approving a change asks first.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
func Compare(older, newer scriptflow.Graph, olderVersion int) scriptflow.Graph
Compare returns newer as a diagram of what changed since older: each of newer's nodes marked added or changed (with what it said before), and each node only older had carried over, marked removed, with its edges.
Nodes are matched by what they are and what they reach, never by line: the same kind reaching the same connection, tool, destination, table or target is the same step wherever it moved to, so reordering functions changes nothing. A node whose name or purpose matches but whose reach differs is changed, which is how a destination moving from the portal to a bucket reads as one change naming both. A computed value compares as the source text it is written as, so it is never read as a change to or from a guessed name.
Types ¶
This section is empty.