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
806be97e
Commit
806be97e
authored
Jul 07, 2020
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Vue file list LFS badge feature flag
parent
db775720
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1 addition
and
20 deletions
+1
-20
app/assets/javascripts/repository/components/tree_content.vue
...assets/javascripts/repository/components/tree_content.vue
+0
-6
app/assets/javascripts/repository/index.js
app/assets/javascripts/repository/index.js
+0
-1
app/assets/javascripts/repository/queries/files.query.graphql
...assets/javascripts/repository/queries/files.query.graphql
+1
-2
app/assets/javascripts/repository/queries/vue_file_list_lfs_badge.query.graphql
.../repository/queries/vue_file_list_lfs_badge.query.graphql
+0
-3
app/controllers/projects/refs_controller.rb
app/controllers/projects/refs_controller.rb
+0
-4
app/controllers/projects/tree_controller.rb
app/controllers/projects/tree_controller.rb
+0
-4
No files found.
app/assets/javascripts/repository/components/tree_content.vue
View file @
806be97e
...
...
@@ -5,7 +5,6 @@ import FileTable from './table/index.vue';
import
getRefMixin
from
'
../mixins/get_ref
'
;
import
filesQuery
from
'
../queries/files.query.graphql
'
;
import
projectPathQuery
from
'
../queries/project_path.query.graphql
'
;
import
vueFileListLfsBadgeQuery
from
'
../queries/vue_file_list_lfs_badge.query.graphql
'
;
import
FilePreview
from
'
./preview/index.vue
'
;
import
{
readmeFile
}
from
'
../utils/readme
'
;
...
...
@@ -21,9 +20,6 @@ export default {
projectPath
:
{
query
:
projectPathQuery
,
},
vueFileListLfsBadge
:
{
query
:
vueFileListLfsBadgeQuery
,
},
},
props
:
{
path
:
{
...
...
@@ -47,7 +43,6 @@ export default {
blobs
:
[],
},
isLoadingFiles
:
false
,
vueFileListLfsBadge
:
false
,
};
},
computed
:
{
...
...
@@ -82,7 +77,6 @@ export default {
path
:
this
.
path
||
'
/
'
,
nextPageCursor
:
this
.
nextPageCursor
,
pageSize
:
PAGE_SIZE
,
vueLfsEnabled
:
this
.
vueFileListLfsBadge
,
},
})
.
then
(({
data
})
=>
{
...
...
app/assets/javascripts/repository/index.js
View file @
806be97e
...
...
@@ -24,7 +24,6 @@ export default function setupVueRepositoryList() {
projectShortPath
,
ref
,
escapedRef
,
vueFileListLfsBadge
:
gon
.
features
?.
vueFileListLfsBadge
||
false
,
commits
:
[],
},
});
...
...
app/assets/javascripts/repository/queries/files.query.graphql
View file @
806be97e
...
...
@@ -14,7 +14,6 @@ query Files(
$ref
:
String
!
$pageSize
:
Int
!
$nextPageCursor
:
String
$vueLfsEnabled
:
Boolean
=
false
)
{
project
(
fullPath
:
$projectPath
)
{
repository
{
...
...
@@ -47,7 +46,7 @@ query Files(
node
{
...
TreeEntry
webPath
lfsOid
@include
(
if
:
$vueLfsEnabled
)
lfsOid
}
}
pageInfo
{
...
...
app/assets/javascripts/repository/queries/vue_file_list_lfs_badge.query.graphql
deleted
100644 → 0
View file @
db775720
query
VueFileListLfsBadge
{
vueFileListLfsBadge
@client
}
app/controllers/projects/refs_controller.rb
View file @
806be97e
...
...
@@ -11,10 +11,6 @@ class Projects::RefsController < Projects::ApplicationController
before_action
:assign_ref_vars
before_action
:authorize_download_code!
before_action
only:
[
:logs_tree
]
do
push_frontend_feature_flag
(
:vue_file_list_lfs_badge
,
default_enabled:
true
)
end
def
switch
respond_to
do
|
format
|
format
.
html
do
...
...
app/controllers/projects/tree_controller.rb
View file @
806be97e
...
...
@@ -15,10 +15,6 @@ class Projects::TreeController < Projects::ApplicationController
before_action
:authorize_download_code!
before_action
:authorize_edit_tree!
,
only:
[
:create_dir
]
before_action
only:
[
:show
]
do
push_frontend_feature_flag
(
:vue_file_list_lfs_badge
,
default_enabled:
true
)
end
def
show
return
render_404
unless
@commit
...
...
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