Commit 01130251 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'nfriend-enable-release-show-page-feature-flag' into 'master'

Enable the dedicated Release page (by enabling the `release_show_page` feature flag)

See merge request gitlab-org/gitlab!26502
parents c81c5202 b25e7c6d
......@@ -8,7 +8,7 @@ class Projects::ReleasesController < Projects::ApplicationController
before_action do
push_frontend_feature_flag(:release_issue_summary, project)
push_frontend_feature_flag(:release_evidence_collection, project, default_enabled: true)
push_frontend_feature_flag(:release_show_page, project)
push_frontend_feature_flag(:release_show_page, project, default_enabled: true)
end
before_action :authorize_update_release!, only: %i[edit update]
before_action :authorize_read_release_evidence!, only: [:evidence]
......@@ -31,7 +31,7 @@ class Projects::ReleasesController < Projects::ApplicationController
end
def show
return render_404 unless Feature.enabled?(:release_show_page, project)
return render_404 unless Feature.enabled?(:release_show_page, project, default_enabled: true)
respond_to do |format|
format.html do
......
......@@ -20,7 +20,7 @@ class ReleasePresenter < Gitlab::View::Presenter::Delegated
end
def self_url
return unless ::Feature.enabled?(:release_show_page, project)
return unless ::Feature.enabled?(:release_show_page, project, default_enabled: true)
project_release_url(project, release)
end
......
---
title: Add dedicated Release page for viewing a single Release
merge_request: 26502
author:
type: added
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