Skip to content

Add worker and controller for exporting storage usage

Vijay Hawoldar requested to merge vij-export-namespace-stats-job into master

What does this MR do and why?

As part of https://gitlab.com/gitlab-org/gitlab/-/issues/422501 we need to export namespace storage usage.

This MR adds a controller action/route, sidekiq worker and an email handling the generation and delivery of the CSV.

The CSV generation itself was added in !130857 (merged)

How to set up and validate locally

  • Visit https://gdk.test:3000/admin/namespace_limits/export
  • Visit https://gdk.test:3000/rails/letter_opener and view the generated email

Screenshots

- Screenshot
Requesting export Screenshot_2023-10-09_at_10.22.42
HTML email Screenshot_2023-10-09_at_10.22.59
Text email Screenshot_2023-10-09_at_10.23.10

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Vijay Hawoldar

Merge request reports