Skip to content

Commit

Permalink
Refactor MilestoneGroupingStrategy to match the changes in #315 (#323)
Browse files Browse the repository at this point in the history
Special milestone groups are not added in the parseMilestoneData
method.

Let's add the special milestone groups to the result of the getGroups
method.
  • Loading branch information
NereusWB922 authored Mar 29, 2024
1 parent 8ddcdcd commit 70bae91
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ export class MilestoneGroupingStrategy implements GroupingStrategy {
getGroups(): Observable<Milestone[]> {
return this.milestoneService.fetchMilestones().pipe(
map((milestones) => {
return this.milestoneService.parseMilestoneData(milestones);
const parseMilestone = this.milestoneService.parseMilestoneData(milestones);
parseMilestone.push(Milestone.IssueWithoutMilestone);
parseMilestone.push(Milestone.PRWithoutMilestone);
return parseMilestone;
})
);
}
Expand Down

0 comments on commit 70bae91

Please sign in to comment.