[go: up one dir, main page]

Skip to content

Delete the main_branch_over_master feature flag

This feature flag was introduced in 13.12, which is more than 4 milestones ago.

As part of our process we want to ensure feature flags don't stay too long in the codebase.

Rollout issue: #329190

Remaining mentions of the feature flag (click to expand)
ee/spec/factories/groups.rb
12:        stub_feature_flags(main_branch_over_master: false)

spec/factories/projects.rb
523:        stub_feature_flags(main_branch_over_master: false)

spec/lib/gitlab/default_branch_spec.rb
11:      stub_feature_flags(main_branch_over_master: true)

spec/services/design_management/save_designs_service_spec.rb
198:          stub_feature_flags(main_branch_over_master: true)

spec/spec_helper.rb
263:    stub_feature_flags(main_branch_over_master: false)
312:      stub_feature_flags(main_branch_over_master: false)

config/feature_flags/development/main_branch_over_master.yml
2:name: main_branch_over_master

ee/spec/factories/groups.rb
12:        stub_feature_flags(main_branch_over_master: false)

lib/gitlab/default_branch.rb
7:      Feature.enabled?(:main_branch_over_master, object) ? 'main' : 'master'

spec/factories/projects.rb
523:        stub_feature_flags(main_branch_over_master: false)

spec/lib/gitlab/default_branch_spec.rb
5:# We disabled main_branch_over_master feature for tests
9:  context 'main_branch_over_master is enabled' do
11:      stub_feature_flags(main_branch_over_master: true)
19:  context 'main_branch_over_master is disabled' do

spec/services/design_management/save_designs_service_spec.rb
198:          stub_feature_flags(main_branch_over_master: true)

spec/spec_helper.rb
263:    stub_feature_flags(main_branch_over_master: false)
308:      # Disable `main_branch_over_master` as we migrate
312:      stub_feature_flags(main_branch_over_master: false)

Currently the feature flag is enabled on production

It is possible that this MR will still need some changes to remove references to the feature flag in the code. At the moment the gitlab-housekeeper is not always capable of removing all references so you must check the diff and pipeline failures to confirm if there are any issues. It is the responsibility of groupsource code to push those changes to this branch.

Note: If you do not want to remove this feature flag at this time, you can add an intended_to_rollout_by_date attribute in the feature flag YAML file to prevent automated removal.

TODO for the reviewers before merging this MR

This change was generated by gitlab-housekeeper in CI using the Keeps::DeleteOldFeatureFlags keep.

To provide feedback on your experience with gitlab-housekeeper please create an issue with the label GitLab Housekeeper and consider pinging the author of this keep.

Merge request reports

Loading