Epics count badge in left sidebar shows wrong number

Summary

The count within the badge of the epics shows the wrong number (compared to the count of the issues or merge requests). For epics it seems to show "all" epics. For issues and merge requests it seems to show the "open" issues and merge requests.

Steps to reproduce

  • Look at the left sidebar. :)

What is the current bug behavior?

For epics it seems to show "all" epics. For issues and merge requests it seems to show the "open" issues and merge requests.

What is the expected correct behavior?

The epics count badge should show the "open" epics too (like the issues and merge requests).

Relevant logs and/or screenshots

Screenshot_2018-11-17_Epics___GitLab_org

Output of checks

This bug happens on Gitlab.com