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 ...@@ -40,7 +40,6 @@ MARKDOWN
OPTIONAL_REVIEW_TEMPLATE = "%{role} review is optional for %{category}".freeze OPTIONAL_REVIEW_TEMPLATE = "%{role} review is optional for %{category}".freeze
NOT_AVAILABLE_TEMPLATE = 'No %{role} available'.freeze NOT_AVAILABLE_TEMPLATE = 'No %{role} available'.freeze
TIMEZONE_EXPERIMENT = true
def note_for_spins_role(spins, role) def note_for_spins_role(spins, role)
spins.each do |spin| spins.each do |spin|
...@@ -81,12 +80,10 @@ categories << :database if helper.gitlab_helper&.mr_labels&.include?('database') ...@@ -81,12 +80,10 @@ categories << :database if helper.gitlab_helper&.mr_labels&.include?('database')
if changes.any? if changes.any?
project = helper.project_name project = helper.project_name
timezone_roulette_spins = roulette.spin(project, categories, timezone_experiment: true)
random_roulette_spins = roulette.spin(project, categories, timezone_experiment: false) random_roulette_spins = roulette.spin(project, categories, timezone_experiment: false)
rows = timezone_roulette_spins.map do |spin| rows = random_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])
markdown_row_for_spins(spin.category, [spin, fallback_spin])
end end
markdown(MESSAGE) 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