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
Jérome Perrin
gitlab-ce
Commits
dcdab2ae
Commit
dcdab2ae
authored
Feb 14, 2017
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master' into dz-nested-groups-improvements-3
parents
efc82ebf
b4c00ae4
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
443 additions
and
111 deletions
+443
-111
.gitlab-ci.yml
.gitlab-ci.yml
+2
-2
app/assets/javascripts/boards/filters/due_date_filters.js.es6
...assets/javascripts/boards/filters/due_date_filters.js.es6
+1
-1
app/views/users/calendar_activities.html.haml
app/views/users/calendar_activities.html.haml
+9
-5
changelogs/unreleased/26287-link-branch-in-calendar-activity.yml
...ogs/unreleased/26287-link-branch-in-calendar-activity.yml
+4
-0
changelogs/unreleased/cover-my-karma.yml
changelogs/unreleased/cover-my-karma.yml
+4
-0
changelogs/unreleased/issue_23317.yml
changelogs/unreleased/issue_23317.yml
+4
-0
config/karma.config.js
config/karma.config.js
+7
-0
config/webpack.config.js
config/webpack.config.js
+1
-0
package.json
package.json
+10
-0
spec/javascripts/test_bundle.js
spec/javascripts/test_bundle.js
+35
-0
yarn.lock
yarn.lock
+366
-103
No files found.
.gitlab-ci.yml
View file @
dcdab2ae
...
@@ -254,7 +254,7 @@ karma:
...
@@ -254,7 +254,7 @@ karma:
name
:
coverage-javascript
name
:
coverage-javascript
expire_in
:
31d
expire_in
:
31d
paths
:
paths
:
-
coverage-javascript/
default/
-
coverage-javascript/
lint-doc
:
lint-doc
:
stage
:
test
stage
:
test
...
@@ -393,7 +393,7 @@ pages:
...
@@ -393,7 +393,7 @@ pages:
-
mv public/ .public/
-
mv public/ .public/
-
mkdir public/
-
mkdir public/
-
mv coverage/ public/coverage-ruby/ ||
true
-
mv coverage/ public/coverage-ruby/ ||
true
-
mv coverage-javascript/
default/
public/coverage-javascript/ ||
true
-
mv coverage-javascript/ public/coverage-javascript/ ||
true
-
mv eslint-report.html public/ ||
true
-
mv eslint-report.html public/ ||
true
artifacts
:
artifacts
:
paths
:
paths
:
...
...
app/assets/javascripts/boards/filters/due_date_filters.js.es6
View file @
dcdab2ae
...
@@ -3,5 +3,5 @@
...
@@ -3,5 +3,5 @@
Vue.filter('due-date', (value) => {
Vue.filter('due-date', (value) => {
const date = new Date(value);
const date = new Date(value);
return dateFormat(date, 'mmm d, yyyy');
return dateFormat(date, 'mmm d, yyyy'
, true
);
});
});
app/views/users/calendar_activities.html.haml
View file @
dcdab2ae
...
@@ -10,13 +10,17 @@
...
@@ -10,13 +10,17 @@
%i
.fa.fa-clock-o
%i
.fa.fa-clock-o
=
event
.
created_at
.
to_s
(
:time
)
=
event
.
created_at
.
to_s
(
:time
)
-
if
event
.
push?
-
if
event
.
push?
#{
event
.
action_name
}
#{
event
.
ref_type
}
#{
event
.
ref_name
}
#{
event
.
action_name
}
#{
event
.
ref_type
}
%strong
-
commits_path
=
namespace_project_commits_path
(
event
.
project
.
namespace
,
event
.
project
,
event
.
ref_name
)
=
link_to_if
event
.
project
.
repository
.
branch_exists?
(
event
.
ref_name
),
event
.
ref_name
,
commits_path
-
else
-
else
=
event_action_name
(
event
)
=
event_action_name
(
event
)
-
if
event
.
note?
%strong
%strong
=
link_to
event
.
note_target
.
to_reference
,
event_note_target_path
(
event
)
-
if
event
.
note?
-
elsif
event
.
target
=
link_to
event
.
note_target
.
to_reference
,
event_note_target_path
(
event
)
%strong
=
link_to
event
.
target
.
to_reference
,
[
event
.
project
.
namespace
.
becomes
(
Namespace
),
event
.
project
,
event
.
target
]
-
elsif
event
.
target
=
link_to
event
.
target
.
to_reference
,
[
event
.
project
.
namespace
.
becomes
(
Namespace
),
event
.
project
,
event
.
target
]
at
at
%strong
%strong
...
...
changelogs/unreleased/26287-link-branch-in-calendar-activity.yml
0 → 100644
View file @
dcdab2ae
---
title
:
Add Links to Branches in Calendar Activity
merge_request
:
9224
author
:
Jan Christophersen
changelogs/unreleased/cover-my-karma.yml
0 → 100644
View file @
dcdab2ae
---
title
:
Reintroduce coverage report for JavaScript
merge_request
:
9133
author
:
winniehell
changelogs/unreleased/issue_23317.yml
0 → 100644
View file @
dcdab2ae
---
title
:
Fix timezone on issue boards due date
merge_request
:
author
:
config/karma.config.js
View file @
dcdab2ae
...
@@ -15,6 +15,13 @@ module.exports = function(config) {
...
@@ -15,6 +15,13 @@ module.exports = function(config) {
preprocessors
:
{
preprocessors
:
{
'
spec/javascripts/**/*.js?(.es6)
'
:
[
'
webpack
'
,
'
sourcemap
'
],
'
spec/javascripts/**/*.js?(.es6)
'
:
[
'
webpack
'
,
'
sourcemap
'
],
},
},
reporters
:
[
'
progress
'
,
'
coverage-istanbul
'
],
coverageIstanbulReporter
:
{
reports
:
[
'
html
'
,
'
text-summary
'
],
dir
:
'
coverage-javascript/
'
,
subdir
:
'
.
'
,
fixWebpackSourcePaths
:
true
},
webpack
:
webpackConfig
,
webpack
:
webpackConfig
,
webpackMiddleware
:
{
stats
:
'
errors-only
'
},
webpackMiddleware
:
{
stats
:
'
errors-only
'
},
});
});
...
...
config/webpack.config.js
View file @
dcdab2ae
...
@@ -54,6 +54,7 @@ var config = {
...
@@ -54,6 +54,7 @@ var config = {
exclude
:
/
(
node_modules|vendor
\/
assets
)
/
,
exclude
:
/
(
node_modules|vendor
\/
assets
)
/
,
loader
:
'
babel-loader
'
,
loader
:
'
babel-loader
'
,
options
:
{
options
:
{
plugins
:
[
'
istanbul
'
],
presets
:
[
presets
:
[
[
"
es2015
"
,
{
"
modules
"
:
false
}],
[
"
es2015
"
,
{
"
modules
"
:
false
}],
'
stage-2
'
'
stage-2
'
...
...
package.json
View file @
dcdab2ae
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
"
webpack-dev-server
"
:
"
^2.3.0
"
"
webpack-dev-server
"
:
"
^2.3.0
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"
babel-plugin-istanbul
"
:
"
^4.0.0
"
,
"
eslint
"
:
"
^3.10.1
"
,
"
eslint
"
:
"
^3.10.1
"
,
"
eslint-config-airbnb-base
"
:
"
^10.0.1
"
,
"
eslint-config-airbnb-base
"
:
"
^10.0.1
"
,
"
eslint-import-resolver-webpack
"
:
"
^0.8.1
"
,
"
eslint-import-resolver-webpack
"
:
"
^0.8.1
"
,
...
@@ -47,9 +48,18 @@
...
@@ -47,9 +48,18 @@
"
jasmine-core
"
:
"
^2.5.2
"
,
"
jasmine-core
"
:
"
^2.5.2
"
,
"
jasmine-jquery
"
:
"
^2.1.1
"
,
"
jasmine-jquery
"
:
"
^2.1.1
"
,
"
karma
"
:
"
^1.4.1
"
,
"
karma
"
:
"
^1.4.1
"
,
"
karma-coverage-istanbul-reporter
"
:
"
^0.2.0
"
,
"
karma-jasmine
"
:
"
^1.1.0
"
,
"
karma-jasmine
"
:
"
^1.1.0
"
,
"
karma-phantomjs-launcher
"
:
"
^1.0.2
"
,
"
karma-phantomjs-launcher
"
:
"
^1.0.2
"
,
"
karma-sourcemap-loader
"
:
"
^0.3.7
"
,
"
karma-sourcemap-loader
"
:
"
^0.3.7
"
,
"
karma-webpack
"
:
"
^2.0.2
"
"
karma-webpack
"
:
"
^2.0.2
"
},
"nyc"
:
{
"exclude"
:
[
"spec/javascripts/test_bundle.js"
,
"spec/javascripts/**/*_spec.js"
,
"spec/javascripts/**/*_spec.js.es6"
,
"app/assets/javascripts/droplab/**/*"
]
}
}
}
}
spec/javascripts/test_bundle.js
View file @
dcdab2ae
...
@@ -42,3 +42,38 @@ testsContext.keys().forEach(function (path) {
...
@@ -42,3 +42,38 @@ testsContext.keys().forEach(function (path) {
});
});
}
}
});
});
// workaround: include all source files to find files with 0% coverage
// see also https://github.com/deepsweet/istanbul-instrumenter-loader/issues/15
describe
(
'
Uncovered files
'
,
function
()
{
// the following files throw errors because of undefined variables
const
troubleMakers
=
[
'
./blob_edit/blob_edit_bundle.js
'
,
'
./cycle_analytics/components/stage_plan_component.js
'
,
'
./cycle_analytics/components/stage_staging_component.js
'
,
'
./cycle_analytics/components/stage_test_component.js
'
,
'
./diff_notes/components/jump_to_discussion.js
'
,
'
./diff_notes/components/resolve_count.js
'
,
'
./merge_conflicts/components/inline_conflict_lines.js
'
,
'
./merge_conflicts/components/parallel_conflict_lines.js
'
,
'
./network/branch_graph.js
'
,
];
const
sourceFiles
=
require
.
context
(
'
~
'
,
true
,
/^
\.\/(?!
application
\.
js
)
.*
\.(
js|es6
)
$/
);
sourceFiles
.
keys
().
forEach
(
function
(
path
)
{
// ignore if there is a matching spec file
if
(
testsContext
.
keys
().
indexOf
(
`
${
path
.
replace
(
/
\.
js
(\.
es6
)?
$/
,
''
)}
_spec`
)
>
-
1
)
{
return
;
}
it
(
`includes '
${
path
}
'`
,
function
()
{
try
{
sourceFiles
(
path
);
}
catch
(
err
)
{
if
(
troubleMakers
.
indexOf
(
path
)
===
-
1
)
{
expect
(
err
).
toBeNull
();
}
}
});
});
});
yarn.lock
View file @
dcdab2ae
This diff is collapsed.
Click to expand it.
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