SubmitSeatUtilizationDataReminderJob SubscriptionLicensePresenter undefined local variable or method `name'
Problem
I observe SubmitSeatUtilizationDataReminderJob failing locally, and then see it also happening in production (see Sentry. This means some submit_seat_utilization_data_reminder
mails are failing to send.
[ActiveJob] [SubmitSeatUtilizationDataReminderJob] [39f39801-096c-4974-8871-88eb37cf8677] Error performing SubmitSeatUtilizationDataReminderJob (Job ID: 39f39801-096c-4974-8871-88eb37cf8677) from Sidekiq(cron) in 1790.72ms: ActionView::Template::Error (undefined local variable or method `name' for nil:SubscriptionLicensePresenter):
/Users/mark/code/cdot2/app/presenters/subscription_license_presenter.rb:27:in `subscription_name'
/Users/mark/code/cdot2/app/views/shared/mailer/_subscription_info.html.haml:3:in `_app_views_shared_mailer__subscription_info_html_haml___621346729686115690_43340'
I observed this locally when I tried to activate an fresh GDK instance.
Proposal
Fix the nil exception.
Result
submit_seat_utilization_data_reminder
mailer is working correctly.
Next steps (if any)
How will we measure success?
Edited by Mark Chao