Commit 35c3c09a authored by Sean McGivern's avatar Sean McGivern

Merge branch 'rollback-roulette-timezone-experiment' into 'master'

Roll-back the roulette timezone experiment

Closes gitlab-org/quality/team-tasks#563

See merge request gitlab-org/gitlab!39819
parents 6916d74a 84b7888d
......@@ -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