Rake task gitlab:elastic:test:index_size does not work
Summary
Rake task listed in the documentation gitlab:elastic:test:index_size
does not work
Steps to reproduce
run bundle exec rake gitlab:elastic:test:index_size
from the console within gdk in the gitlab folder
What is the current bug behavior?
===== Size stats for index: gitlab-development =====
rake aborted!
NoMethodError: undefined method `index_size' for Gitlab::Elastic::Helper:Class
/Users/terrichu/Projects/gitlab/gitlab-development-kit/gitlab/ee/lib/tasks/gitlab/elastic/test.rake:7:in `block (4 levels) in <main>'
/Users/terrichu/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:24:in `eval'
/Users/terrichu/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:24:in `<main>'
Tasks: TOP => gitlab:elastic:test:index_size
(See full trace by running task with --trace)
What is the expected correct behavior?
Should display how much space the current index is using.
Possible fixes
It looks like the method is not a class method but is expected to be a class method