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
e073279a
Commit
e073279a
authored
Jan 24, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
bac6062f
6e085eea
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
9 deletions
+23
-9
.gitlab-ci.yml
.gitlab-ci.yml
+2
-2
app/assets/javascripts/feature_highlight/feature_highlight.js
...assets/javascripts/feature_highlight/feature_highlight.js
+3
-1
spec/javascripts/notes/components/discussion_counter_spec.js
spec/javascripts/notes/components/discussion_counter_spec.js
+2
-0
spec/javascripts/vue_mr_widget/mr_widget_options_spec.js
spec/javascripts/vue_mr_widget/mr_widget_options_spec.js
+16
-6
No files found.
.gitlab-ci.yml
View file @
e073279a
image
:
"
dev.gitlab.org:5005/gitlab/gitlab-build-images:ruby-2.5.3-golang-1.
9-git-2.18-chrome-69
.0-node-10.x-yarn-1.12-postgresql-9.6-graphicsmagick-1.3.29"
image
:
"
dev.gitlab.org:5005/gitlab/gitlab-build-images:ruby-2.5.3-golang-1.
11-git-2.18-chrome-71
.0-node-10.x-yarn-1.12-postgresql-9.6-graphicsmagick-1.3.29"
.dedicated-runner
:
&dedicated-runner
retry
:
1
...
...
@@ -797,7 +797,7 @@ gitlab:setup-mysql:
# Frontend-related jobs
gitlab:assets:compile:
<<
:
*dedicated-no-docs-pull-cache-job
image
:
dev.gitlab.org:5005/gitlab/gitlab-build-images:ruby-2.5.3-git-2.18-chrome-
69
.0-node-8.x-yarn-1.12-graphicsmagick-1.3.29-docker-18.06.1
image
:
dev.gitlab.org:5005/gitlab/gitlab-build-images:ruby-2.5.3-git-2.18-chrome-
71
.0-node-8.x-yarn-1.12-graphicsmagick-1.3.29-docker-18.06.1
dependencies
:
[]
services
:
-
docker:stable-dind
...
...
app/assets/javascripts/feature_highlight/feature_highlight.js
View file @
e073279a
...
...
@@ -31,12 +31,14 @@ export function setupFeatureHighlightPopover(id, debounceTimeout = 300) {
.
removeAttr
(
'
disabled
'
);
}
const
getPriority
=
e
=>
parseInt
(
e
.
dataset
.
highlightPriority
,
10
)
||
0
;
export
function
findHighestPriorityFeature
()
{
let
priorityFeature
;
const
sortedFeatureEls
=
[].
slice
.
call
(
document
.
querySelectorAll
(
'
.js-feature-highlight
'
))
.
sort
((
a
,
b
)
=>
(
a
.
dataset
.
highlightPriority
||
0
)
<
(
b
.
dataset
.
highlightPriority
||
0
));
.
sort
((
a
,
b
)
=>
getPriority
(
b
)
-
getPriority
(
a
));
const
[
priorityFeatureEl
]
=
sortedFeatureEls
;
if
(
priorityFeatureEl
)
{
...
...
spec/javascripts/notes/components/discussion_counter_spec.js
View file @
e073279a
...
...
@@ -33,11 +33,13 @@ describe('DiscussionCounter component', () => {
...
discussionMock
,
id
:
discussionMock
.
id
,
notes
:
[{
...
discussionMock
.
notes
[
0
],
resolvable
:
true
,
resolved
:
true
}],
resolved
:
true
,
},
{
...
discussionMock
,
id
:
discussionMock
.
id
+
1
,
notes
:
[{
...
discussionMock
.
notes
[
0
],
resolvable
:
true
,
resolved
:
false
}],
resolved
:
false
,
},
];
const
firstDiscussionId
=
discussionMock
.
id
+
1
;
...
...
spec/javascripts/vue_mr_widget/mr_widget_options_spec.js
View file @
e073279a
...
...
@@ -5,7 +5,7 @@ import notify from '~/lib/utils/notify';
import
{
stateKey
}
from
'
~/vue_merge_request_widget/stores/state_maps
'
;
import
mountComponent
from
'
spec/helpers/vue_mount_component_helper
'
;
import
mockData
from
'
./mock_data
'
;
import
{
faviconDataUrl
,
overlayDataUrl
,
faviconWithOverlayDataUrl
}
from
'
../lib/utils/mock_data
'
;
import
{
faviconDataUrl
,
overlayDataUrl
}
from
'
../lib/utils/mock_data
'
;
const
returnPromise
=
data
=>
new
Promise
(
resolve
=>
{
...
...
@@ -340,17 +340,27 @@ describe('mrWidgetOptions', () => {
vm
.
mr
.
ciStatusFaviconPath
=
overlayDataUrl
;
vm
.
setFaviconHelper
()
.
then
(()
=>
{
expect
(
faviconElement
.
getAttribute
(
'
href
'
)).
toEqual
(
faviconWithOverlayDataUrl
);
/*
It would be better if we'd could mock commonUtils.setFaviconURL
with a spy and test that it was called. We are doing the following
tests as a proxy to show that the function has been called
*/
expect
(
faviconElement
.
getAttribute
(
'
href
'
)).
not
.
toEqual
(
null
);
expect
(
faviconElement
.
getAttribute
(
'
href
'
)).
not
.
toEqual
(
overlayDataUrl
);
expect
(
faviconElement
.
getAttribute
(
'
href
'
)).
not
.
toEqual
(
faviconDataUrl
);
done
();
})
.
catch
(
done
.
fail
);
});
it
(
'
should not call setFavicon when there is no ciStatusFaviconPath
'
,
()
=>
{
it
(
'
should not call setFavicon when there is no ciStatusFaviconPath
'
,
done
=>
{
vm
.
mr
.
ciStatusFaviconPath
=
null
;
vm
.
setFaviconHelper
();
expect
(
faviconElement
.
getAttribute
(
'
href
'
)).
toEqual
(
null
);
vm
.
setFaviconHelper
()
.
then
(()
=>
{
expect
(
faviconElement
.
getAttribute
(
'
href
'
)).
toEqual
(
null
);
done
();
})
.
catch
(
done
.
fail
);
});
});
...
...
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