Misleading issue count on group milestone index page
Summary
Issue count displayed on group milestone index page ("Open" and "Closed" tabs) is misleading, because it does not match the value which is shown after you follow the link.
Steps to reproduce
This is quite difficult to explain, but bear with me.
- Group milestone is a collection of project milestones with the same name
- We can have milestone "v0.0" open in 3 projects and closed in 1 project
- Number 1313 here means "1313 issues, both open and closed, with milestone v0.0, in these 4 projects"
- When we follow this link we go to
/groups/gitlab-org/issues?milestone_title=v0.0
and we can see - This is not ideal, because we should go to the "All" tab, but this is a separate issue.
- However, at least the number "1313" is displayed somewhere.
- Let's go to open group milestones
- Number 909 here means "909 issues, both open and closed, with milestone v0.0, in these 3 projects". Why 3? Because the milestone v0.0 is open in 3 projects and closed in 1.
- But the link still points to the same screen
- The number 909 is nowhere in the page, because here we do not filter out this one closed milestone