Ensure string in field test (#20777)

This commit is contained in:
Ben Halpern 2024-03-19 17:44:57 -04:00 committed by GitHub
parent 3b62ff1945
commit c01964b03a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View file

@ -78,6 +78,6 @@ class EmailDigestArticleCollector
def results_count
return 6 unless FeatureFlag.enabled?(:digest_results_count_testing)
(field_test(:digest_count_03_18, participant: @user) || 6).to_i
(field_test(:digest_count_03_18, participant: @user)&.split("_")&.last || 6).to_i
end
end

View file

@ -30,12 +30,12 @@ experiments:
digest_count_03_18:
started_at: 2024-03-18
variants:
- 6
- 4
- 5
- 7
- 8
- 10
- count_6
- count_4
- count_5
- count_7
- count_8
- count_10
weights:
- 60
- 8