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
Show 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
...
@@ -29,15 +29,12 @@ module API
render_api_error!
(
errors
,
400
)
render_api_error!
(
errors
,
400
)
end
end
<<<<<<<
HEAD
def
check_sha_param!
(
params
,
merge_request
)
def
check_sha_param!
(
params
,
merge_request
)
if
params
[
:sha
]
&&
merge_request
.
diff_head_sha
!=
params
[
:sha
]
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
)
render_api_error!
(
"SHA does not match HEAD of source branch:
#{
merge_request
.
diff_head_sha
}
"
,
409
)
end
end
end
end
=======
>>>>>>>
d964816b9fe56679ffc0b331e701f7b24db5c6a9
def
find_merge_requests
(
args
=
{})
def
find_merge_requests
(
args
=
{})
args
=
params
.
merge
(
args
)
args
=
params
.
merge
(
args
)
...
...
lib/gitlab/usage_data.rb
View file @
30dda279
...
@@ -52,8 +52,7 @@ module Gitlab
...
@@ -52,8 +52,7 @@ module Gitlab
todos:
Todo
.
count
,
todos:
Todo
.
count
,
uploads:
Upload
.
count
,
uploads:
Upload
.
count
,
web_hooks:
WebHook
.
count
web_hooks:
WebHook
.
count
<<<<<<<
HEAD
}.
merge
(
service_desk_counts
).
merge
(
services_usage
)
}.
merge
(
service_desk_counts
)
}
}
end
end
...
@@ -67,9 +66,6 @@ module Gitlab
...
@@ -67,9 +66,6 @@ module Gitlab
service_desk_issues:
Issue
.
where
(
project:
projects_with_service_desk
,
service_desk_issues:
Issue
.
where
(
project:
projects_with_service_desk
,
author:
User
.
support_bot
,
author:
User
.
support_bot
,
confidential:
true
).
count
confidential:
true
).
count
=======
}.
merge
(
services_usage
)
>>>>>>>
d964816b9fe56679ffc0b331e701f7b24db5c6a9
}
}
end
end
...
@@ -100,7 +96,6 @@ module Gitlab
...
@@ -100,7 +96,6 @@ module Gitlab
usage_data
usage_data
end
end
<<<<<<<
HEAD
def
license_edition
(
plan
)
def
license_edition
(
plan
)
case
plan
case
plan
when
'premium'
when
'premium'
...
@@ -110,7 +105,8 @@ module Gitlab
...
@@ -110,7 +105,8 @@ module Gitlab
else
# Older licenses
else
# Older licenses
'EE'
'EE'
end
end
=======
end
def
services_usage
def
services_usage
types
=
{
types
=
{
JiraService
:
:projects_jira_active
,
JiraService
:
:projects_jira_active
,
...
@@ -121,7 +117,6 @@ module Gitlab
...
@@ -121,7 +117,6 @@ module Gitlab
results
=
Service
.
unscoped
.
where
(
type:
types
.
keys
,
active:
true
).
group
(
:type
).
count
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
}
results
.
each_with_object
({})
{
|
(
key
,
value
),
response
|
response
[
types
[
key
.
to_sym
]]
=
value
}
>>>>>>>
d964816b9fe56679ffc0b331e701f7b24db5c6a9
end
end
end
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