From d3762c8215c70c588a3efeb4f241200ad1ba14bc Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Thu, 15 Dec 2022 11:40:01 +0100 Subject: [PATCH] feat(graphql): return all phases in per phase validator tasks --- graphql/schema.resolvers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphql/schema.resolvers.go b/graphql/schema.resolvers.go index 5820a67..6aad088 100644 --- a/graphql/schema.resolvers.go +++ b/graphql/schema.resolvers.go @@ -203,7 +203,7 @@ func (r *validatorResolver) Tasks(ctx context.Context, obj *nemeton.Validator) ( StartedCount: 0, FinishedCount: 0, } - for _, phase := range append(r.store.GetFinishedPhases(), r.store.GetCurrentPhase()) { + for _, phase := range r.store.GetAllPhases() { perPhase := &model.PerPhaseTasks{ CompletedCount: 0, StartedCount: 0,