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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
a97280ea
Commit
a97280ea
authored
Oct 04, 2016
by
Sean McGivern
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into issue_22446
parents
45bfadbc
66613f1a
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
53 additions
and
26 deletions
+53
-26
.csscomb.json
.csscomb.json
+1
-1
.scss-lint.yml
.scss-lint.yml
+1
-1
CHANGELOG
CHANGELOG
+4
-0
app/assets/javascripts/copy_to_clipboard.js
app/assets/javascripts/copy_to_clipboard.js
+9
-9
app/assets/stylesheets/pages/merge_requests.scss
app/assets/stylesheets/pages/merge_requests.scss
+2
-1
app/models/service.rb
app/models/service.rb
+1
-0
app/views/admin/dashboard/index.html.haml
app/views/admin/dashboard/index.html.haml
+5
-0
app/views/projects/merge_requests/widget/_heading.html.haml
app/views/projects/merge_requests/widget/_heading.html.haml
+3
-2
lib/api/namespaces.rb
lib/api/namespaces.rb
+10
-12
spec/models/service_spec.rb
spec/models/service_spec.rb
+17
-0
No files found.
.csscomb.json
View file @
a97280ea
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
"always-semicolon"
:
true
,
"always-semicolon"
:
true
,
"color-case"
:
"lower"
,
"color-case"
:
"lower"
,
"block-indent"
:
" "
,
"block-indent"
:
" "
,
"color-shorthand"
:
tru
e
,
"color-shorthand"
:
fals
e
,
"element-case"
:
"lower"
,
"element-case"
:
"lower"
,
"space-before-colon"
:
""
,
"space-before-colon"
:
""
,
"space-after-colon"
:
" "
,
"space-after-colon"
:
" "
,
...
...
.scss-lint.yml
View file @
a97280ea
...
@@ -79,7 +79,7 @@ linters:
...
@@ -79,7 +79,7 @@ linters:
# HEX colors should use three-character values where possible.
# HEX colors should use three-character values where possible.
HexLength
:
HexLength
:
enabled
:
tru
e
enabled
:
fals
e
# HEX color values should use lower-case colors to differentiate between
# HEX color values should use lower-case colors to differentiate between
# letters and numbers, e.g. `#E3E3E3` vs. `#e3e3e3`.
# letters and numbers, e.g. `#E3E3E3` vs. `#e3e3e3`.
...
...
CHANGELOG
View file @
a97280ea
...
@@ -43,9 +43,12 @@ v 8.13.0 (unreleased)
...
@@ -43,9 +43,12 @@ v 8.13.0 (unreleased)
- Fix broken repository 500 errors in project list
- Fix broken repository 500 errors in project list
- Close todos when accepting merge requests via the API !6486 (tonygambone)
- Close todos when accepting merge requests via the API !6486 (tonygambone)
- Changed Slack service user referencing from full name to username (Sebastian Poxhofer)
- Changed Slack service user referencing from full name to username (Sebastian Poxhofer)
- Add Container Registry on/off status to Admin Area !6638 (the-undefined)
v 8.12.4 (unreleased)
v 8.12.4 (unreleased)
- Fix type mismatch bug when closing Jira issue
- Fix type mismatch bug when closing Jira issue
- Fix issues importing services via Import/Export
- Fix "Copy to clipboard" tooltip to say "Copied!" when clipboard button is clicked. (lukehowell)
v 8.12.3
v 8.12.3
- Update Gitlab Shell to support low IO priority for storage moves
- Update Gitlab Shell to support low IO priority for storage moves
...
@@ -120,6 +123,7 @@ v 8.12.0
...
@@ -120,6 +123,7 @@ v 8.12.0
- Reduce contributions calendar data payload (ClemMakesApps)
- Reduce contributions calendar data payload (ClemMakesApps)
- Show all pipelines for merge requests even from discarded commits !6414
- Show all pipelines for merge requests even from discarded commits !6414
- Replace contributions calendar timezone payload with dates (ClemMakesApps)
- Replace contributions calendar timezone payload with dates (ClemMakesApps)
- Changed MR widget build status to pipeline status !6335
- Add `web_url` field to issue, merge request, and snippet API objects (Ben Boeckel)
- Add `web_url` field to issue, merge request, and snippet API objects (Ben Boeckel)
- Enable pipeline events by default !6278
- Enable pipeline events by default !6278
- Move parsing of sidekiq ps into helper !6245 (pascalbetz)
- Move parsing of sidekiq ps into helper !6245 (pascalbetz)
...
...
app/assets/javascripts/copy_to_clipboard.js
View file @
a97280ea
...
@@ -26,15 +26,15 @@
...
@@ -26,15 +26,15 @@
};
};
showTooltip
=
function
(
target
,
title
)
{
showTooltip
=
function
(
target
,
title
)
{
return
$
(
target
).
tooltip
({
var
$target
=
$
(
target
);
container
:
'
body
'
,
var
originalTitle
=
$target
.
data
(
'
original-title
'
);
html
:
'
true
'
,
placement
:
'
auto bottom
'
,
$target
title
:
title
,
.
attr
(
'
title
'
,
'
Copied!
'
)
trigger
:
'
manual
'
.
tooltip
(
'
fixTitle
'
)
}).
tooltip
(
'
show
'
).
one
(
'
mouseleave
'
,
function
()
{
.
tooltip
(
'
show
'
)
return
$
(
this
).
tooltip
(
'
hide
'
);
.
attr
(
'
title
'
,
originalTitle
)
}
);
.
tooltip
(
'
fixTitle
'
);
};
};
$
(
function
()
{
$
(
function
()
{
...
...
app/assets/stylesheets/pages/merge_requests.scss
View file @
a97280ea
...
@@ -70,7 +70,8 @@
...
@@ -70,7 +70,8 @@
&
.ci-success
{
&
.ci-success
{
color
:
$gl-success
;
color
:
$gl-success
;
a
.environment
{
a
.environment
,
a
.pipeline
{
color
:
inherit
;
color
:
inherit
;
}
}
}
}
...
...
app/models/service.rb
View file @
a97280ea
...
@@ -136,6 +136,7 @@ class Service < ActiveRecord::Base
...
@@ -136,6 +136,7 @@ class Service < ActiveRecord::Base
end
end
def #{arg}=(value)
def #{arg}=(value)
self.properties ||= {}
updated_properties['#{arg}'] = #{arg} unless #{arg}_changed?
updated_properties['#{arg}'] = #{arg} unless #{arg}_changed?
self.properties['#{arg}'] = value
self.properties['#{arg}'] = value
end
end
...
...
app/views/admin/dashboard/index.html.haml
View file @
a97280ea
...
@@ -63,6 +63,11 @@
...
@@ -63,6 +63,11 @@
Reply by email
Reply by email
%span
.light.pull-right
%span
.light.pull-right
=
boolean_to_icon
Gitlab
::
IncomingEmail
.
enabled?
=
boolean_to_icon
Gitlab
::
IncomingEmail
.
enabled?
%p
Container Registry
%span
.light.pull-right
=
boolean_to_icon
Gitlab
.
config
.
registry
.
enabled
.col-md-4
.col-md-4
%h4
%h4
Components
Components
...
...
app/views/projects/merge_requests/widget/_heading.html.haml
View file @
a97280ea
...
@@ -4,14 +4,15 @@
...
@@ -4,14 +4,15 @@
.ci_widget
{
class:
"ci-#{status}"
,
style:
(
"display:none"
unless
@pipeline
.
status
==
status
)
}
.ci_widget
{
class:
"ci-#{status}"
,
style:
(
"display:none"
unless
@pipeline
.
status
==
status
)
}
=
ci_icon_for_status
(
status
)
=
ci_icon_for_status
(
status
)
%span
%span
CI build
Pipeline
=
link_to
"#
#{
@pipeline
.
id
}
"
,
namespace_project_pipeline_path
(
@pipeline
.
project
.
namespace
,
@pipeline
.
project
,
@pipeline
.
id
),
class:
'pipeline'
=
ci_label_for_status
(
status
)
=
ci_label_for_status
(
status
)
for
for
-
commit
=
@merge_request
.
diff_head_commit
-
commit
=
@merge_request
.
diff_head_commit
=
succeed
"."
do
=
succeed
"."
do
=
link_to
@pipeline
.
short_sha
,
namespace_project_commit_path
(
@merge_request
.
source_project
.
namespace
,
@merge_request
.
source_project
,
@pipeline
.
sha
),
class:
"monospace"
=
link_to
@pipeline
.
short_sha
,
namespace_project_commit_path
(
@merge_request
.
source_project
.
namespace
,
@merge_request
.
source_project
,
@pipeline
.
sha
),
class:
"monospace"
%span
.ci-coverage
%span
.ci-coverage
=
link_to
"View details"
,
builds_namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
class:
"js-show-tab"
,
data:
{
action:
'build
s'
}
=
link_to
"View details"
,
pipelines_namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
class:
"js-show-tab"
,
data:
{
action:
'pipeline
s'
}
-
elsif
@merge_request
.
has_ci?
-
elsif
@merge_request
.
has_ci?
-
# Compatibility with old CI integrations (ex jenkins) when you request status from CI server via AJAX
-
# Compatibility with old CI integrations (ex jenkins) when you request status from CI server via AJAX
...
...
lib/api/namespaces.rb
View file @
a97280ea
...
@@ -4,20 +4,18 @@ module API
...
@@ -4,20 +4,18 @@ module API
before
{
authenticate!
}
before
{
authenticate!
}
resource
:namespaces
do
resource
:namespaces
do
# Get a namespaces list
desc
'Get a namespaces list'
do
#
success
Entities
::
Namespace
# Example Request:
end
# GET /namespaces
params
do
get
do
optional
:search
,
type:
String
,
desc:
"Search query for namespaces"
@namespaces
=
if
current_user
.
admin
Namespace
.
all
else
current_user
.
namespaces
end
end
@namespaces
=
@namespaces
.
search
(
params
[
:search
])
if
params
[
:search
].
present?
get
do
@namespaces
=
paginate
@namespaces
namespaces
=
current_user
.
admin
?
Namespace
.
all
:
current_user
.
namespaces
namespaces
=
namespaces
.
search
(
params
[
:search
])
if
params
[
:search
].
present?
present
@namespaces
,
with:
Entities
::
Namespace
present
paginate
(
namespaces
)
,
with:
Entities
::
Namespace
end
end
end
end
end
end
...
...
spec/models/service_spec.rb
View file @
a97280ea
...
@@ -203,6 +203,23 @@ describe Service, models: true do
...
@@ -203,6 +203,23 @@ describe Service, models: true do
end
end
end
end
describe
'initialize service with no properties'
do
let
(
:service
)
do
GitlabIssueTrackerService
.
create
(
project:
create
(
:project
),
title:
'random title'
)
end
it
'does not raise error'
do
expect
{
service
}.
not_to
raise_error
end
it
'creates the properties'
do
expect
(
service
.
properties
).
to
eq
({
"title"
=>
"random title"
})
end
end
describe
"callbacks"
do
describe
"callbacks"
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
)
}
let!
(
:service
)
do
let!
(
:service
)
do
...
...
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