Skip to content

Commit

Permalink
keep iterations order after set issue summaries (#3282)
Browse files Browse the repository at this point in the history
  • Loading branch information
chengjoey authored Dec 7, 2021
1 parent 220f17c commit 255e038
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/dop/endpoints/iteration.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,10 @@ func (e *Endpoints) PagingIterations(ctx context.Context, r *http.Request, vars
}
}
iterations := make([]apistructs.Iteration, 0, len(iterationModels))
for _, itr := range iterationMap {
iterations = append(iterations, *itr)
for _, itrModel := range iterationModels {
if itr, existed := iterationMap[int64(itrModel.ID)]; existed {
iterations = append(iterations, *itr)
}
}
// userIDs
var userIDs []string
Expand Down

0 comments on commit 255e038

Please sign in to comment.