Fix SiteStatistics wikis_count
What does this MR do?
Modify ProjectFeature existing wiki_access_level
when null
to 20
so we don't miss-count them as NULL
is not considered in a != number
operation.
Adds rake task to re-populate Site Statistics metrics if it gets out-of-sync:
$ rake gitlab:refresh_site_statistics
Updating Site Statistics counters:
* Repository... OK!
* Wikis... OK!
What are the relevant issue numbers?
See discussion in gitlab-com/migration#746 (comment 92449634)
EE part in : https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6919
cc @stanhu
Edited by Gabriel Mazetto