Commit b728ded1 authored by Shinya Maeda's avatar Shinya Maeda

Merge branch '330941-remove-new_release_page-ff' into 'master'

Remove new_release_page feature flag [RUN ALL RSPEC] [RUN AS-IF-FOSS]

See merge request gitlab-org/gitlab!64153
parents 6700c65b c5ca124c
...@@ -25,12 +25,6 @@ class Projects::ReleasesController < Projects::ApplicationController ...@@ -25,12 +25,6 @@ class Projects::ReleasesController < Projects::ApplicationController
end end
end end
def new
unless Feature.enabled?(:new_release_page, project, default_enabled: true)
redirect_to(new_project_tag_path(@project))
end
end
def downloads def downloads
redirect_to link.url redirect_to link.url
end end
......
...@@ -20,11 +20,7 @@ module ReleasesHelper ...@@ -20,11 +20,7 @@ module ReleasesHelper
documentation_path: help_page documentation_path: help_page
}.tap do |data| }.tap do |data|
if can?(current_user, :create_release, @project) if can?(current_user, :create_release, @project)
data[:new_release_path] = if Feature.enabled?(:new_release_page, @project, default_enabled: true) data[:new_release_path] = new_project_release_path(@project)
new_project_release_path(@project)
else
new_project_tag_path(@project)
end
end end
end end
end end
......
---
name: new_release_page
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/35367
rollout_issue_url:
milestone: '13.2'
type: development
group: group::release
default_enabled: true
...@@ -48,16 +48,6 @@ RSpec.describe ReleasesHelper do ...@@ -48,16 +48,6 @@ RSpec.describe ReleasesHelper do
it 'points new_release_path to the "New Release" page' do it 'points new_release_path to the "New Release" page' do
expect(helper.data_for_releases_page[:new_release_path]).to eq(new_project_release_path(project)) expect(helper.data_for_releases_page[:new_release_path]).to eq(new_project_release_path(project))
end end
context 'when the "new_release_page" feature flag is disabled' do
before do
stub_feature_flags(new_release_page: false)
end
it 'points new_release_path to the "New Tag" page' do
expect(helper.data_for_releases_page[:new_release_path]).to eq(new_project_tag_path(project))
end
end
end end
end end
......
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