-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add batching information to visualize (UI PR 3) (#499)
Display batch information in visualize report: * add batch style and logic to execution-batches section * add batch style and logic to deployment flow section * highlight module names in common Adds a batches command to core to allow the visualization to display batch information for a clean deployment. This API is likely to change as it is tooling focused.
- Loading branch information
Showing
12 changed files
with
245 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Batcher } from "./internal/batcher"; | ||
import { deploymentStateReducer } from "./internal/execution/reducers/deployment-state-reducer"; | ||
import { IgnitionModule, IgnitionModuleResult } from "./types/module"; | ||
|
||
/** | ||
* Provides a array of batches, where each batch is an array of futureIds, | ||
* based on Ignition's batching algorithm, assuming a the module is being | ||
* run from as a fresh deployment. | ||
* | ||
* @param ignitionModule - the Ignition module to be get batch information for | ||
* @returns the batches Ignition will use for the module | ||
* | ||
* @beta | ||
*/ | ||
export function batches( | ||
ignitionModule: IgnitionModule<string, string, IgnitionModuleResult<string>> | ||
): string[][] { | ||
const deploymentState = deploymentStateReducer(undefined); | ||
|
||
return Batcher.batch(ignitionModule, deploymentState); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.