Commit 86943ab2 authored by Alexandru Croitor's avatar Alexandru Croitor

Set default cadences automatic to false

As the default cadences are defined behind the scenes we do not
need to set these to automatic, this decision should be made by
the user. We will default to automatic once we expose cadences to
the user as that is when user can decide to change it.
parent 80ed7104
# frozen_string_literal: true
class SetIterationCadenceAutomaticToFalse < ActiveRecord::Migration[6.0]
DOWNTIME = false
def up
ActiveRecord::Base.connection.execute <<~SQL
UPDATE iterations_cadences
SET automatic = FALSE
WHERE iterations_cadences.automatic = TRUE
SQL
end
def down
# no-op
end
end
c954e1f2bfdfddc98030bfa0ab28f58a41921cbb5b81e088cde12637e3ae5a8f
\ No newline at end of file
......@@ -211,6 +211,7 @@ module EE
::Iterations::Cadence.create_with(
title: cadence_title,
start_date: start_date,
automatic: false,
# set to 0, i.e. unspecified when creating default iterations as we do validate for presence.
iterations_in_advance: 0,
duration_in_weeks: 0
......
---
title: Set default cadences to non-automatic
merge_request: 56842
author:
type: fixed
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