Clean up reporting rake tasks
Problem
From https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/7468
There are multiple opportunities to clean up lib/tasks/reports/saas_auto_renew.rake
and lib/tasks/reports/sm_auto_renew.rake
- Improve logging
- Rubocop violations
- Use model scopes
- Add specs
- Extract commonalities between tasks
- Performance optimizations
Proposal
- Determine the expected usage of these reports. Are we going to be using them for awhile?
- If we are, address the above concerns.