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
cdf9ef52
Commit
cdf9ef52
authored
Apr 12, 2020
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
13150a38
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
29 additions
and
13 deletions
+29
-13
app/presenters/commit_status_presenter.rb
app/presenters/commit_status_presenter.rb
+2
-2
app/serializers/build_details_entity.rb
app/serializers/build_details_entity.rb
+2
-2
app/serializers/issue_entity.rb
app/serializers/issue_entity.rb
+2
-1
app/serializers/project_mirror_entity.rb
app/serializers/project_mirror_entity.rb
+2
-2
app/uploaders/object_storage.rb
app/uploaders/object_storage.rb
+2
-2
app/workers/repository_check/batch_worker.rb
app/workers/repository_check/batch_worker.rb
+2
-2
app/workers/repository_check/single_repository_worker.rb
app/workers/repository_check/single_repository_worker.rb
+2
-2
changelogs/unreleased/app-serializers.yml
changelogs/unreleased/app-serializers.yml
+5
-0
changelogs/unreleased/app-uploaders-workers.yml
changelogs/unreleased/app-uploaders-workers.yml
+5
-0
changelogs/unreleased/commit-status-presenter.yml
changelogs/unreleased/commit-status-presenter.yml
+5
-0
No files found.
app/presenters/commit_status_presenter.rb
View file @
cdf9ef52
...
@@ -26,8 +26,6 @@ class CommitStatusPresenter < Gitlab::View::Presenter::Delegated
...
@@ -26,8 +26,6 @@ class CommitStatusPresenter < Gitlab::View::Presenter::Delegated
presents
:build
presents
:build
prepend_if_ee
(
'::EE::CommitStatusPresenter'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
def
self
.
callout_failure_messages
def
self
.
callout_failure_messages
CALLOUT_FAILURE_MESSAGES
CALLOUT_FAILURE_MESSAGES
end
end
...
@@ -44,3 +42,5 @@ class CommitStatusPresenter < Gitlab::View::Presenter::Delegated
...
@@ -44,3 +42,5 @@ class CommitStatusPresenter < Gitlab::View::Presenter::Delegated
script_failure?
||
missing_dependency_failure?
||
archived_failure?
||
scheduler_failure?
||
data_integrity_failure?
script_failure?
||
missing_dependency_failure?
||
archived_failure?
||
scheduler_failure?
||
data_integrity_failure?
end
end
end
end
CommitStatusPresenter
.
prepend_if_ee
(
'::EE::CommitStatusPresenter'
)
app/serializers/build_details_entity.rb
View file @
cdf9ef52
# frozen_string_literal: true
# frozen_string_literal: true
class
BuildDetailsEntity
<
JobEntity
class
BuildDetailsEntity
<
JobEntity
prepend_if_ee
(
'::EE::BuildDetailEntity'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
expose
:coverage
,
:erased_at
,
:duration
expose
:coverage
,
:erased_at
,
:duration
expose
:tag_list
,
as: :tags
expose
:tag_list
,
as: :tags
expose
:has_trace?
,
as: :has_trace
expose
:has_trace?
,
as: :has_trace
...
@@ -152,3 +150,5 @@ class BuildDetailsEntity < JobEntity
...
@@ -152,3 +150,5 @@ class BuildDetailsEntity < JobEntity
_
(
"Please refer to <a href=
\"
%{docs_url}
\"
>%{docs_url}</a>"
)
%
{
docs_url:
docs_url
}
_
(
"Please refer to <a href=
\"
%{docs_url}
\"
>%{docs_url}</a>"
)
%
{
docs_url:
docs_url
}
end
end
end
end
BuildDetailsEntity
.
prepend_if_ee
(
'::EE::BuildDetailEntity'
)
app/serializers/issue_entity.rb
View file @
cdf9ef52
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
class
IssueEntity
<
IssuableEntity
class
IssueEntity
<
IssuableEntity
include
TimeTrackableEntity
include
TimeTrackableEntity
prepend_if_ee
(
'::EE::IssueEntity'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
expose
:state
expose
:state
expose
:milestone_id
expose
:milestone_id
...
@@ -73,3 +72,5 @@ class IssueEntity < IssuableEntity
...
@@ -73,3 +72,5 @@ class IssueEntity < IssuableEntity
help_page_path
(
'user/project/settings/index.md'
,
anchor:
'archiving-a-project'
)
help_page_path
(
'user/project/settings/index.md'
,
anchor:
'archiving-a-project'
)
end
end
end
end
IssueEntity
.
prepend_if_ee
(
'::EE::IssueEntity'
)
app/serializers/project_mirror_entity.rb
View file @
cdf9ef52
# frozen_string_literal: true
# frozen_string_literal: true
class
ProjectMirrorEntity
<
Grape
::
Entity
class
ProjectMirrorEntity
<
Grape
::
Entity
prepend_if_ee
(
'::EE::ProjectMirrorEntity'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
expose
:id
expose
:id
expose
:remote_mirrors_attributes
,
using:
RemoteMirrorEntity
do
|
project
|
expose
:remote_mirrors_attributes
,
using:
RemoteMirrorEntity
do
|
project
|
project
.
remote_mirrors
project
.
remote_mirrors
end
end
end
end
ProjectMirrorEntity
.
prepend_if_ee
(
'::EE::ProjectMirrorEntity'
)
app/uploaders/object_storage.rb
View file @
cdf9ef52
...
@@ -137,8 +137,6 @@ module ObjectStorage
...
@@ -137,8 +137,6 @@ module ObjectStorage
included
do
|
base
|
included
do
|
base
|
base
.
include
(
ObjectStorage
)
base
.
include
(
ObjectStorage
)
include_if_ee
(
'::EE::ObjectStorage::Concern'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
after
:migrate
,
:delete_migrated_file
after
:migrate
,
:delete_migrated_file
end
end
...
@@ -463,3 +461,5 @@ module ObjectStorage
...
@@ -463,3 +461,5 @@ module ObjectStorage
end
end
end
end
end
end
ObjectStorage
::
Concern
.
include_if_ee
(
'::EE::ObjectStorage::Concern'
)
app/workers/repository_check/batch_worker.rb
View file @
cdf9ef52
...
@@ -2,8 +2,6 @@
...
@@ -2,8 +2,6 @@
module
RepositoryCheck
module
RepositoryCheck
class
BatchWorker
# rubocop:disable Scalability/IdempotentWorker
class
BatchWorker
# rubocop:disable Scalability/IdempotentWorker
prepend_if_ee
(
'::EE::RepositoryCheck::BatchWorker'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
include
ApplicationWorker
include
ApplicationWorker
include
RepositoryCheckQueue
include
RepositoryCheckQueue
include
ExclusiveLeaseGuard
include
ExclusiveLeaseGuard
...
@@ -94,3 +92,5 @@ module RepositoryCheck
...
@@ -94,3 +92,5 @@ module RepositoryCheck
end
end
end
end
end
end
RepositoryCheck
::
BatchWorker
.
prepend_if_ee
(
'::EE::RepositoryCheck::BatchWorker'
)
app/workers/repository_check/single_repository_worker.rb
View file @
cdf9ef52
...
@@ -5,8 +5,6 @@ module RepositoryCheck
...
@@ -5,8 +5,6 @@ module RepositoryCheck
include
ApplicationWorker
include
ApplicationWorker
include
RepositoryCheckQueue
include
RepositoryCheckQueue
prepend_if_ee
(
'::EE::RepositoryCheck::SingleRepositoryWorker'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
def
perform
(
project_id
)
def
perform
(
project_id
)
project
=
Project
.
find
(
project_id
)
project
=
Project
.
find
(
project_id
)
healthy
=
project_healthy?
(
project
)
healthy
=
project_healthy?
(
project
)
...
@@ -68,3 +66,5 @@ module RepositoryCheck
...
@@ -68,3 +66,5 @@ module RepositoryCheck
end
end
end
end
end
end
RepositoryCheck
::
SingleRepositoryWorker
.
prepend_if_ee
(
'::EE::RepositoryCheck::SingleRepositoryWorker'
)
changelogs/unreleased/app-serializers.yml
0 → 100644
View file @
cdf9ef52
---
title
:
Move prepend to last line in app serializers
merge_request
:
29332
author
:
Rajendra Kadam
type
:
fixed
changelogs/unreleased/app-uploaders-workers.yml
0 → 100644
View file @
cdf9ef52
---
title
:
Move prepend to last line in app workers and uploaders
merge_request
:
29379
author
:
Rajendra Kadam
type
:
fixed
changelogs/unreleased/commit-status-presenter.yml
0 → 100644
View file @
cdf9ef52
---
title
:
Move prepend to last line in commit status presenter
merge_request
:
29328
author
:
Rajendra Kadam
type
:
fixed
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