Skip to content

Add email templates for bulk_import user mapping with CSV

What does this MR do and why?

Add HTML and text templates for emails sent when the CSV user mapping is completed. There are 2 versions of the email (with slightly different copy):

  • Success: When there are no errors and all placeholder users were assigned.
  • Failed: When there are errors and some placeholder users were not assigned.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Version Success Failed
HTML User_mapping_CSV_success User_mapping_CSV_failed
Text User_mapping_CSV_success_-_text User_mapping_CSV_failed_-_text

How to set up and validate locally

  1. Checkout the branch and restart GDK (️ Important: Restarting is needed to view the email previews as they seem to be cached).
  2. Go to http://127.0.0.1:3000/rails/mailers and preview the 2 email templates:
  • bulk_import_csv_user_mapping_success: http://127.0.0.1:3000/rails/mailers/notify/bulk_import_csv_user_mapping_success.html?locale=en
  • bulk_import_csv_user_mapping_failed: http://127.0.0.1:3000/rails/mailers/notify/bulk_import_csv_user_mapping_failed.html?locale=en

Related to #458841

Merge request reports