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
d4941c87
Commit
d4941c87
authored
Feb 06, 2020
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Vue file listing flag by default
parent
8cdfa402
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
+8
-3
app/controllers/projects/tree_controller.rb
app/controllers/projects/tree_controller.rb
+1
-1
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+1
-1
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+1
-1
changelogs/unreleased/ph-enableVueFileListFlag.yml
changelogs/unreleased/ph-enableVueFileListFlag.yml
+5
-0
No files found.
app/controllers/projects/tree_controller.rb
View file @
d4941c87
...
...
@@ -32,7 +32,7 @@ class Projects::TreeController < Projects::ApplicationController
respond_to
do
|
format
|
format
.
html
do
lfs_blob_ids
if
Feature
.
disabled?
(
:vue_file_list
,
@project
)
lfs_blob_ids
if
Feature
.
disabled?
(
:vue_file_list
,
@project
,
default_enabled:
true
)
@last_commit
=
@repository
.
last_commit_for_path
(
@commit
.
id
,
@tree
.
path
)
||
@commit
end
...
...
app/controllers/projects_controller.rb
View file @
d4941c87
...
...
@@ -296,7 +296,7 @@ class ProjectsController < Projects::ApplicationController
private
def
show_blob_ids?
repo_exists?
&&
project_view_files?
&&
Feature
.
disabled?
(
:vue_file_list
,
@project
)
repo_exists?
&&
project_view_files?
&&
Feature
.
disabled?
(
:vue_file_list
,
@project
,
default_enabled:
true
)
end
# Render project landing depending of which features are available
...
...
app/helpers/projects_helper.rb
View file @
d4941c87
...
...
@@ -703,7 +703,7 @@ module ProjectsHelper
end
def
vue_file_list_enabled?
Feature
.
enabled?
(
:vue_file_list
,
@project
)
Feature
.
enabled?
(
:vue_file_list
,
@project
,
default_enabled:
true
)
end
def
show_visibility_confirm_modal?
(
project
)
...
...
changelogs/unreleased/ph-enableVueFileListFlag.yml
0 → 100644
View file @
d4941c87
---
title
:
Refactored repository browser to use Vue and GraphQL
merge_request
:
24450
author
:
type
:
performance
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