Retain only reportable operation details
This commit is contained in:
@@ -213,6 +213,7 @@ func (r *Runner) Run(ctx context.Context, input RunInput) (RunOutput, error) {
|
||||
for i := range units {
|
||||
unit := &units[i]
|
||||
unit.ModuleIndex = moduleIndex
|
||||
unit.Operations = reportOperations(unit.Operations)
|
||||
if err == nil {
|
||||
unit.State = outcomes.WorkCompleted
|
||||
if evidence.reports {
|
||||
@@ -545,14 +546,6 @@ func runModulePipeline(ctx context.Context, input collectSectionProposalsInput)
|
||||
out.Candidates = append(out.Candidates, candidate)
|
||||
}
|
||||
}
|
||||
for operationIndex := range unit.Operations {
|
||||
operation := &unit.Operations[operationIndex]
|
||||
if evidence.reports && operation.Reference.Kind == outcomes.OperationProposal && operation.Succeeded {
|
||||
for _, proposal := range enriched {
|
||||
operation.ProposalIndices = append(operation.ProposalIndices, nextProposalIndex+proposal.ProposalIndex)
|
||||
}
|
||||
}
|
||||
}
|
||||
nextProposalIndex += len(enriched)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user