diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-06-18 17:29:48 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-06-18 17:29:48 +0900 |
commit | 71e30c011957229dfa4029b9b04e5308ceed4fcd (patch) | |
tree | 2bfbff9907fa37a5bfba3c744439e09c7381c06f /app/assets/javascripts/pages/projects/graphs | |
parent | 1aeedf41f8681bbc638dde8b8a263a7d7cd13a1e (diff) | |
parent | 39208ed6750e31d10e4bad5a33693a83eb599f1f (diff) | |
download | gitlab-ce-71e30c011957229dfa4029b9b04e5308ceed4fcd.tar.gz |
Merge branch 'master' into build-chunks-on-object-storage
Diffstat (limited to 'app/assets/javascripts/pages/projects/graphs')
-rw-r--r-- | app/assets/javascripts/pages/projects/graphs/show/stat_graph_contributors.js | 4 | ||||
-rw-r--r-- | app/assets/javascripts/pages/projects/graphs/show/stat_graph_contributors_util.js | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/app/assets/javascripts/pages/projects/graphs/show/stat_graph_contributors.js b/app/assets/javascripts/pages/projects/graphs/show/stat_graph_contributors.js index 653e2502d01..37336a8cb69 100644 --- a/app/assets/javascripts/pages/projects/graphs/show/stat_graph_contributors.js +++ b/app/assets/javascripts/pages/projects/graphs/show/stat_graph_contributors.js @@ -36,7 +36,9 @@ export default (function() { var author_graph, author_header; author_header = _this.create_author_header(d); $(".contributors-list").append(author_header); - _this.authors[d.author_name] = author_graph = new ContributorsAuthorGraph(d.dates); + + author_graph = new ContributorsAuthorGraph(d.dates); + _this.authors[d.author_name] = author_graph; return author_graph.draw(); }; })(this)); diff --git a/app/assets/javascripts/pages/projects/graphs/show/stat_graph_contributors_util.js b/app/assets/javascripts/pages/projects/graphs/show/stat_graph_contributors_util.js index 77135ad1f0e..165446a4db6 100644 --- a/app/assets/javascripts/pages/projects/graphs/show/stat_graph_contributors_util.js +++ b/app/assets/javascripts/pages/projects/graphs/show/stat_graph_contributors_util.js @@ -111,10 +111,15 @@ export default { parse_log_entry: function(log_entry, field, date_range) { var parsed_entry; parsed_entry = {}; + parsed_entry.author_name = log_entry.author_name; parsed_entry.author_email = log_entry.author_email; parsed_entry.dates = {}; - parsed_entry.commits = parsed_entry.additions = parsed_entry.deletions = 0; + + parsed_entry.commits = 0; + parsed_entry.additions = 0; + parsed_entry.deletions = 0; + _.each(_.omit(log_entry, 'author_name', 'author_email'), (function(_this) { return function(value, key) { if (_this.in_range(value.date, date_range)) { |