Inaccurate message when migrating projects into hashed storage using ID_FROM and ID_TO
Summary
Inaccurate message when migrating projects into hashed storage using ID_FROM and ID_TO
Steps to reproduce
- Have a legacy store with a few projects
- Try to migrate it to hashed storage using ID_FROM and ID_TO
Example Project
What is the current bug behavior?
Current message is:
sudo gitlab-rake gitlab:storage:migrate_to_hashed ID_FROM=1 ID_TO=25
Enqueuing migration of 231 projects in batches of 200. Done!
What is the expected correct behavior?
Message should take into account the number of projects between the IDs, say:
sudo gitlab-rake gitlab:storage:migrate_to_hashed ID_FROM=1 ID_TO=25
Enqueuing migration of 25 projects in batches of 200. Done!
Possible fixes
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/tasks/gitlab/storage.rake#L44
ZD https://gitlab.zendesk.com/agent/tickets/124757 (internal)