用户统计页面无法正常展示当前所有用户状态
Summary
用户统计页面展示的用户状态不对。当有些CE客户想要迁移到JH版本时,因为之前没有license席位的限制,所以冗余的用户会比较多,在迁移之前一般都会根据购买的license席位去删除或者禁用之前CE实例上多余的用户。但是目前发现在禁用或者删除用户之后,在用户统计页面并不能及时正确的展示当前实例的用户状态。从而导致客户对迁移产生疑虑,害怕迁移之后license席位超用导致无法正常使用。

Steps to reproduce
进入管理中心 -> 用户,禁用或删除几个用户,再进入管理中心 -> 仪表盘 -> 用户统计查看统计页面,可以看到统计页面的用户状态是混乱且不对的,包括已激活,已禁用,机器人用户等的统计都是错误的。
我尝试过查询数据库,发现数据库里面是更新了的,数据能够对得上,所以猜测这应该是前端展示的bug。
Example Project
What is the current bug behavior?
用户统计无法正常展示用户状态。
What is the expected correct behavior?
在实例的用户发生变更时,用户统计中能够及时且正确的展示整个实例的用户状态。
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)(we will only investigate if the tests are passing)