You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment draw-diagrams CLI command has --interfaces option which accepts a list of Interfaces, that is then used in Scope(s) definition.
For each relevant Scope draw-diagrams command uses only relevant Interface(s) - Scoped Interfaces as a starting point for inferring relationships for a diagram going downstream from Scoped Interfaces all the way down to the last Interface that does not use any other Interfaces.
Sometimes it is useful to see which other Interfaces use the Scoped Interfaces i.e. going upstream from Scoped Interfaces.
Requirements
Extend draw-diagrams to support a new option --expand-upstream, which would be used with an integer value indicating the number of upstream expansions e.g.
if --expand-upstream 1 is used, then the draw-diagrams command would try to find 1 other interface that uses each of the Scoped Interfaces, and add them to the Scope.
if --expand-upstream 2 is used, then the draw-diagrams command would try to find 1 other interface that uses each of the Scoped Interfaces, and then repeat the same for each of the interfaces it found in the first iteration, and add them to the Scope.
if --expand-upstream 0 is used, then the draw-diagrams command would try to find all other interfaces that use each of the Scoped Interfaces recursively, and add them to the Scope.
Use C4InterFlow.Cli.Commands.QueryUseFlowsCommand.Execute method to find interface that use Scoped Interfaces .
NOTE: C4InterFlow.Cli.Commands.QueryUseFlowsCommand.Execute will have to be used with isRecursive parameter set to false unless --expand-upstream 0 is used when calling draw-diagrams command.
The text was updated successfully, but these errors were encountered:
Context
At the moment
draw-diagrams
CLI command has--interfaces
option which accepts a list of Interfaces, that is then used in Scope(s) definition.For each relevant Scope
draw-diagrams
command uses only relevant Interface(s) - Scoped Interfaces as a starting point for inferring relationships for a diagram going downstream from Scoped Interfaces all the way down to the last Interface that does not use any other Interfaces.Sometimes it is useful to see which other Interfaces use the Scoped Interfaces i.e. going upstream from Scoped Interfaces.
Requirements
Extend
draw-diagrams
to support a new option--expand-upstream
, which would be used with aninteger
value indicating the number of upstream expansions e.g.--expand-upstream 1
is used, then thedraw-diagrams
command would try to find1
other interface that uses each of the Scoped Interfaces, and add them to the Scope.--expand-upstream 2
is used, then thedraw-diagrams
command would try to find1
other interface that uses each of the Scoped Interfaces, and then repeat the same for each of the interfaces it found in the first iteration, and add them to the Scope.--expand-upstream 0
is used, then thedraw-diagrams
command would try to find all other interfaces that use each of the Scoped Interfaces recursively, and add them to the Scope.Use
C4InterFlow.Cli.Commands.QueryUseFlowsCommand.Execute
method to find interface that use Scoped Interfaces .NOTE:
C4InterFlow.Cli.Commands.QueryUseFlowsCommand.Execute
will have to be used withisRecursive
parameter set tofalse
unless--expand-upstream 0
is used when callingdraw-diagrams
command.The text was updated successfully, but these errors were encountered: