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
30dda279
Commit
30dda279
authored
Jul 25, 2017
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CE->EE] Resolve conflicts in lib[ci skip]
parent
14b0ca4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
lib/api/merge_requests.rb
lib/api/merge_requests.rb
+0
-3
lib/gitlab/usage_data.rb
lib/gitlab/usage_data.rb
+3
-8
No files found.
lib/api/merge_requests.rb
View file @
30dda279
...
...
@@ -29,15 +29,12 @@ module API
render_api_error!
(
errors
,
400
)
end
<<<<<<<
HEAD
def
check_sha_param!
(
params
,
merge_request
)
if
params
[
:sha
]
&&
merge_request
.
diff_head_sha
!=
params
[
:sha
]
render_api_error!
(
"SHA does not match HEAD of source branch:
#{
merge_request
.
diff_head_sha
}
"
,
409
)
end
end
=======
>>>>>>>
d964816b9fe56679ffc0b331e701f7b24db5c6a9
def
find_merge_requests
(
args
=
{})
args
=
params
.
merge
(
args
)
...
...
lib/gitlab/usage_data.rb
View file @
30dda279
...
...
@@ -52,8 +52,7 @@ module Gitlab
todos:
Todo
.
count
,
uploads:
Upload
.
count
,
web_hooks:
WebHook
.
count
<<<<<<<
HEAD
}.
merge
(
service_desk_counts
)
}.
merge
(
service_desk_counts
).
merge
(
services_usage
)
}
end
...
...
@@ -67,9 +66,6 @@ module Gitlab
service_desk_issues:
Issue
.
where
(
project:
projects_with_service_desk
,
author:
User
.
support_bot
,
confidential:
true
).
count
=======
}.
merge
(
services_usage
)
>>>>>>>
d964816b9fe56679ffc0b331e701f7b24db5c6a9
}
end
...
...
@@ -100,7 +96,6 @@ module Gitlab
usage_data
end
<<<<<<<
HEAD
def
license_edition
(
plan
)
case
plan
when
'premium'
...
...
@@ -110,7 +105,8 @@ module Gitlab
else
# Older licenses
'EE'
end
=======
end
def
services_usage
types
=
{
JiraService
:
:projects_jira_active
,
...
...
@@ -121,7 +117,6 @@ module Gitlab
results
=
Service
.
unscoped
.
where
(
type:
types
.
keys
,
active:
true
).
group
(
:type
).
count
results
.
each_with_object
({})
{
|
(
key
,
value
),
response
|
response
[
types
[
key
.
to_sym
]]
=
value
}
>>>>>>>
d964816b9fe56679ffc0b331e701f7b24db5c6a9
end
end
end
...
...
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