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
cc9071e7
Commit
cc9071e7
authored
Jul 01, 2019
by
Markus Koller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused EE::GitPushService
parent
2f27acf5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
36 deletions
+12
-36
db/fixtures/development/17_cycle_analytics.rb
db/fixtures/development/17_cycle_analytics.rb
+7
-5
ee/app/services/ee/git_push_service.rb
ee/app/services/ee/git_push_service.rb
+0
-31
ee/changelogs/unreleased/12464-remove-gitpushservice.yml
ee/changelogs/unreleased/12464-remove-gitpushservice.yml
+5
-0
No files found.
db/fixtures/development/17_cycle_analytics.rb
View file @
cc9071e7
...
...
@@ -146,11 +146,13 @@ class Gitlab::Seeder::CycleAnalytics
commit_sha
=
issue
.
project
.
repository
.
create_file
(
@user
,
filename
,
"content"
,
message:
"Commit for
#{
issue
.
to_reference
}
"
,
branch_name:
branch_name
)
issue
.
project
.
repository
.
commit
(
commit_sha
)
GitPushService
.
new
(
issue
.
project
,
@user
,
oldrev:
issue
.
project
.
repository
.
commit
(
"master"
).
sha
,
newrev:
commit_sha
,
ref:
'refs/heads/master'
).
execute
Git
::
BranchPushService
.
new
(
issue
.
project
,
@user
,
oldrev:
issue
.
project
.
repository
.
commit
(
"master"
).
sha
,
newrev:
commit_sha
,
ref:
'refs/heads/master'
).
execute
branch_name
end
...
...
ee/app/services/ee/git_push_service.rb
deleted
100644 → 0
View file @
2f27acf5
# frozen_string_literal: true
module
EE
module
GitPushService
extend
::
Gitlab
::
Utils
::
Override
protected
override
:execute_related_hooks
def
execute_related_hooks
if
should_index_commits?
::
ElasticCommitIndexerWorker
.
perform_async
(
project
.
id
,
params
[
:oldrev
],
params
[
:newrev
])
end
super
end
private
def
should_index_commits?
default_branch?
&&
project
.
use_elasticsearch?
&&
::
Gitlab
::
Redis
::
SharedState
.
with
{
|
redis
|
!
redis
.
sismember
(
:elastic_projects_indexing
,
project
.
id
)
}
end
override
:pipeline_options
def
pipeline_options
{
mirror_update:
project
.
mirror?
&&
project
.
repository
.
up_to_date_with_upstream?
(
branch_name
)
}
end
end
end
ee/changelogs/unreleased/12464-remove-gitpushservice.yml
0 → 100644
View file @
cc9071e7
---
title
:
Remove unused EE::GitPushService
merge_request
:
14483
author
:
type
:
other
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