Skip to content

Add Mailer for Namespace Storage Limit Exceeded

Jason Goodman requested to merge namespace-storage-notification-email into master

What does this MR do and why?

Add a mailer for when the namespace storage limit is exceeded.

This MR only adds the mailer. Code to send the emails does not exist yet.

This mailer and the messages are based on the CiMinutesUsageMailer and its views.

The exact text of the messages may ultimately need adjusted.

Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/349682

Screenshots

Storage warning email

HTML

Screen_Shot_2022-03-10_at_12.24.14_PM

Plain text

Screen_Shot_2022-03-10_at_12.24.25_PM

Storage exceeded email

HTML

Screen_Shot_2022-03-10_at_12.24.38_PM

Plain text

Screen_Shot_2022-03-10_at_12.24.49_PM

How to set up and validate locally

  1. Navigate to http://localhost:3000/rails/mailers
  2. Click on the items below Emails/Namespace Storage Usage Mailer, limit_warning and out_of_storage
  3. Click the links in the email messages to verify that they go to the right locations

Screen_Shot_2022-03-08_at_2_31_48_PM

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 Jason Goodman

Merge request reports

Loading