Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b25e7c6d
Commit
b25e7c6d
authored
Mar 04, 2020
by
Nathan Friend
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable the dedicated Release page
This commit makes the`release_show_page` feature flag enabled by default.
parent
777410a8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
app/controllers/projects/releases_controller.rb
app/controllers/projects/releases_controller.rb
+2
-2
app/presenters/release_presenter.rb
app/presenters/release_presenter.rb
+1
-1
changelogs/unreleased/nfriend-enable-release-show-page-feature-flag.yml
...eleased/nfriend-enable-release-show-page-feature-flag.yml
+5
-0
No files found.
app/controllers/projects/releases_controller.rb
View file @
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
...
...
app/presenters/release_presenter.rb
View file @
b25e7c6d
...
...
@@ -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
...
...
changelogs/unreleased/nfriend-enable-release-show-page-feature-flag.yml
0 → 100644
View file @
b25e7c6d
---
title
:
Add dedicated Release page for viewing a single Release
merge_request
:
26502
author
:
type
:
added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment