MCPcopy
hub / github.com/apache/devlake / SanitizeBlueprint

Function SanitizeBlueprint

backend/server/services/pipeline.go:147–158  ·  view source on GitHub ↗
(blueprint *models.Blueprint)

Source from the content-addressed store, hash-verified

145}
146
147func SanitizeBlueprint(blueprint *models.Blueprint) error {
148 for planStageIdx, pipelineStage := range blueprint.Plan {
149 for planTaskIdx := range pipelineStage {
150 pipelineTask, err := SanitizeTask(blueprint.Plan[planStageIdx][planTaskIdx])
151 if err != nil {
152 return err
153 }
154 blueprint.Plan[planStageIdx][planTaskIdx] = pipelineTask
155 }
156 }
157 return nil
158}
159
160func SanitizePipeline(pipeline *models.Pipeline) error {
161 for planStageIdx, pipelineStage := range pipeline.Plan {

Callers 4

makeProjectOutputFunction · 0.85
GetBlueprintsFunction · 0.85
GetBlueprintFunction · 0.85
PatchBlueprintFunction · 0.85

Calls 1

SanitizeTaskFunction · 0.85

Tested by

no test coverage detected