From 4d4cd876884423b81b72ff2e840154373843a502 Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Mon, 22 Apr 2024 12:42:27 -0400 Subject: [PATCH] Declare winner in digest email subheader test (#20877) --- .../digest_mailer/digest_email.html.erb | 45 ++----------------- config/field_test.yml | 2 + 2 files changed, 5 insertions(+), 42 deletions(-) diff --git a/app/views/mailers/digest_mailer/digest_email.html.erb b/app/views/mailers/digest_mailer/digest_email.html.erb index b92a11fd6..48ceffaad 100644 --- a/app/views/mailers/digest_mailer/digest_email.html.erb +++ b/app/views/mailers/digest_mailer/digest_email.html.erb @@ -9,48 +9,9 @@ - <% case @subheader_variant %> - <% when "just_for_you" %> - - Hey <%= @user.name %>, here are some recent community posts just for you. - - <% when "just_for_you_with_branding" %> - - Hey <%= @user.name %>, here are some recent community posts just for you. - - <% when "get_caught_up" %> - - Hey <%= @user.name %>, let's get you caught up! - - <% when "get_caught_up_with_branding" %> - - Hey <%= @user.name %>, let's get you caught up! - - <% when "whats_trending" %> - - Hey <%= @user.name %>, find out what's trending! - - <% when "whats_trending_with_branding" %> - - Hey <%= @user.name %>, find out what's trending! - - <% when "dont_miss_out" %> - - Hey <%= @user.name %>, don't miss out! - - <% when "dont_miss_out_with_branding" %> - - Hey <%= @user.name %>, don't miss out! - - <% when "base" %> - - Recent community posts just for you - - <% when "base_with_branding" %> - - Recent community posts just for you - - <% end %> + + Hey <%= @user.name %>, let's get you caught up! + <% if @billboards&.first&.present? %> diff --git a/config/field_test.yml b/config/field_test.yml index a3ab5e9bd..e9bddca6b 100644 --- a/config/field_test.yml +++ b/config/field_test.yml @@ -29,6 +29,8 @@ experiments: digest_subheader_03_18: started_at: 2024-04-15 + ended_at: 2024-04-22 + winner: get_caught_up_with_branding variants: - base - base_with_branding