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
fb90ff4d
Commit
fb90ff4d
authored
Feb 19, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
100b257b
6e8c3ae8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
62 deletions
+8
-62
app/controllers/projects/tree_controller.rb
app/controllers/projects/tree_controller.rb
+0
-14
app/serializers/tree_entity.rb
app/serializers/tree_entity.rb
+0
-15
app/serializers/tree_root_entity.rb
app/serializers/tree_root_entity.rb
+0
-27
app/serializers/tree_serializer.rb
app/serializers/tree_serializer.rb
+0
-5
changelogs/unreleased/kinolaev-master-patch-87865.yml
changelogs/unreleased/kinolaev-master-patch-87865.yml
+5
-0
lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml
lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml
+3
-1
No files found.
app/controllers/projects/tree_controller.rb
View file @
fb90ff4d
...
...
@@ -31,20 +31,6 @@ class Projects::TreeController < Projects::ApplicationController
lfs_blob_ids
@last_commit
=
@repository
.
last_commit_for_path
(
@commit
.
id
,
@tree
.
path
)
||
@commit
end
format
.
js
do
# Disable cache so browser history works
no_cache_headers
end
format
.
json
do
page_title
@path
.
presence
||
_
(
"Files"
),
@ref
,
@project
.
full_name
# n+1: https://gitlab.com/gitlab-org/gitlab-ce/issues/38261
Gitlab
::
GitalyClient
.
allow_n_plus_1_calls
do
render
json:
TreeSerializer
.
new
(
project:
@project
,
repository:
@repository
,
ref:
@ref
).
represent
(
@tree
)
end
end
end
end
...
...
app/serializers/tree_entity.rb
deleted
100644 → 0
View file @
100b257b
# frozen_string_literal: true
class
TreeEntity
<
Grape
::
Entity
include
RequestAwareEntity
expose
:id
,
:path
,
:name
,
:mode
expose
:icon
do
|
tree
|
IconsHelper
.
file_type_icon_class
(
'folder'
,
tree
.
mode
,
tree
.
name
)
end
expose
:url
do
|
tree
|
project_tree_path
(
request
.
project
,
File
.
join
(
request
.
ref
,
tree
.
path
))
end
end
app/serializers/tree_root_entity.rb
deleted
100644 → 0
View file @
100b257b
# frozen_string_literal: true
# TODO: Inherit from TreeEntity, when `Tree` implements `id` and `name` like `Gitlab::Git::Tree`.
class
TreeRootEntity
<
Grape
::
Entity
include
RequestAwareEntity
expose
:path
expose
:trees
,
using:
TreeEntity
expose
:blobs
,
using:
BlobEntity
expose
:submodules
,
using:
SubmoduleEntity
expose
:parent_tree_url
do
|
tree
|
path
=
tree
.
path
.
sub
(
%r{
\A
/}
,
''
)
next
unless
path
.
present?
path_segments
=
path
.
split
(
'/'
)
path_segments
.
pop
parent_tree_path
=
path_segments
.
join
(
'/'
)
project_tree_path
(
request
.
project
,
File
.
join
(
request
.
ref
,
parent_tree_path
))
end
expose
:last_commit_path
do
|
tree
|
logs_file_project_ref_path
(
request
.
project
,
request
.
ref
,
tree
.
path
)
end
end
app/serializers/tree_serializer.rb
deleted
100644 → 0
View file @
100b257b
# frozen_string_literal: true
class
TreeSerializer
<
BaseSerializer
entity
TreeRootEntity
end
changelogs/unreleased/kinolaev-master-patch-87865.yml
0 → 100644
View file @
fb90ff4d
---
title
:
Fix rollout status for statefulsets and daemonsets
merge_request
:
24972
author
:
Sergej Nikolaev <kinolaev@gmail.com>
type
:
fixed
lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml
View file @
fb90ff4d
...
...
@@ -54,6 +54,8 @@ variables:
DOCKER_DRIVER
:
overlay2
ROLLOUT_RESOURCE_TYPE
:
deployment
stages
:
-
build
-
test
...
...
@@ -740,7 +742,7 @@ rollout 100%:
chart/
fi
kubectl rollout status -n "$KUBE_NAMESPACE" -w "
deployment
/$name"
kubectl rollout status -n "$KUBE_NAMESPACE" -w "
$ROLLOUT_RESOURCE_TYPE
/$name"
}
function scale() {
...
...
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