PROD bug: new helper created twice in registration
dottorer opened this issue · comments
Circle 7 had this issue where a helper signed up and somehow during the registration, we create 2 entries in the 'users' table. Only the first one has a corresponding 'user_identities' entry. When trying to open the admin/invite page, the page failed since it could not render the pending join request for that user.
Oct 31 03:59:39 lale-help app/web.1: ActionView::Template::Error (undefined method
email' for nil:NilClass):
Oct 31 03:59:39 lale-help app/web.1: 25: div= "H: #{user.home_phone}"
Oct 31 03:59:39 lale-help app/web.1: 26:
Oct 31 03:59:39 lale-help app/web.1: 27: td
Oct 31 03:59:39 lale-help app/web.1: 28: a href="mailto:#{user.identity.email}"
Oct 31 03:59:39 lale-help app/web.1: 29: = user.identity.email
Oct 31 03:59:39 lale-help app/web.1: 30:
Oct 31 03:59:39 lale-help app/web.1: 31: td= l(user.circle_roles.find_by(circle: current_circle).updated_at.to_date, format: :default)
Oct 31 03:59:39 lale-help app/web.1: app/views/circle/admins/_inactive_members_list.slim:28:in block in _app_views_circle_admins__inactive_members_list_slim__197585489853115430_69962871899140' Oct 31 03:59:39 lale-help app/web.1: app/views/circle/admins/_inactive_members_list.slim:11:in
_app_views_circle_admins__inactive_members_list_slim__197585489853115430_69962871899140'
Oct 31 03:59:39 lale-help app/web.1: app/views/circle/admins/invite.slim:34:in _app_views_circle_admins_invite_slim__1472718033991076435_69962803424440'