Commit 84b7888d authored by Rémy Coutable's avatar Rémy Coutable

Roll-back the roulette timezone experiment

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 78dc6025
......@@ -40,7 +40,6 @@ MARKDOWN
OPTIONAL_REVIEW_TEMPLATE = "%{role} review is optional for %{category}".freeze
NOT_AVAILABLE_TEMPLATE = 'No %{role} available'.freeze
TIMEZONE_EXPERIMENT = true
def note_for_spins_role(spins, role)
spins.each do |spin|
......@@ -81,12 +80,10 @@ categories << :database if helper.gitlab_helper&.mr_labels&.include?('database')
if changes.any?
project = helper.project_name
timezone_roulette_spins = roulette.spin(project, categories, timezone_experiment: true)
random_roulette_spins = roulette.spin(project, categories, timezone_experiment: false)
rows = timezone_roulette_spins.map do |spin|
fallback_spin = random_roulette_spins.find { |random_roulette_spins| random_roulette_spins.category == spin.category }
markdown_row_for_spins(spin.category, [spin, fallback_spin])
rows = random_roulette_spins.map do |spin|
markdown_row_for_spins(spin.category, [spin])
end
markdown(MESSAGE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment