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
Kazuhiko Shiozaki
gitlab-ce
Commits
2fa5c751
Commit
2fa5c751
authored
May 25, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Group project contributions by both name and email.
parent
84cb0dcb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
CHANGELOG
CHANGELOG
+1
-0
app/assets/javascripts/stat_graph_contributors_util.js.coffee
...assets/javascripts/stat_graph_contributors_util.js.coffee
+13
-7
No files found.
CHANGELOG
View file @
2fa5c751
...
...
@@ -7,6 +7,7 @@ v 7.12.0 (unreleased)
- Update Asciidoctor gem to version 1.5.2. (Jakub Jirutka)
- Fix resolving of relative links to repository files in AsciiDoc documents. (Jakub Jirutka)
- Use the user list from the target project in a merge request (Stan Hu)
- Group project contributions by both name and email.
v 7.11.2
- no changes
...
...
app/assets/javascripts/stat_graph_contributors_util.js.coffee
View file @
2fa5c751
...
...
@@ -2,11 +2,15 @@ window.ContributorsStatGraphUtil =
parse_log
:
(
log
)
->
total
=
{}
by_author
=
{}
by_email
=
{}
for
entry
in
log
@
add_date
(
entry
.
date
,
total
)
unless
total
[
entry
.
date
]
?
@
add_author
(
entry
,
by_author
)
unless
by_author
[
entry
.
author_name
]
?
@
add_date
(
entry
.
date
,
by_author
[
entry
.
author_name
])
unless
by_author
[
entry
.
author_name
][
entry
.
date
]
@
store_data
(
entry
,
total
[
entry
.
date
],
by_author
[
entry
.
author_name
][
entry
.
date
])
data
=
by_author
[
entry
.
author_name
]
#|| by_email[entry.author_email]
data
?=
@
add_author
(
entry
,
by_author
,
by_email
)
@
add_date
(
entry
.
date
,
data
)
unless
data
[
entry
.
date
]
@
store_data
(
entry
,
total
[
entry
.
date
],
data
[
entry
.
date
])
total
=
_
.
toArray
(
total
)
by_author
=
_
.
toArray
(
by_author
)
total
:
total
,
by_author
:
by_author
...
...
@@ -15,10 +19,12 @@ window.ContributorsStatGraphUtil =
collection
[
date
]
=
{}
collection
[
date
].
date
=
date
add_author
:
(
author
,
by_author
)
->
by_author
[
author
.
author_name
]
=
{}
by_author
[
author
.
author_name
].
author_name
=
author
.
author_name
by_author
[
author
.
author_name
].
author_email
=
author
.
author_email
add_author
:
(
author
,
by_author
,
by_email
)
->
data
=
{}
data
.
author_name
=
author
.
author_name
data
.
author_email
=
author
.
author_email
by_author
[
author
.
author_name
]
=
data
by_email
[
author
.
author_email
]
=
data
store_data
:
(
entry
,
total
,
by_author
)
->
@
store_commits
(
total
,
by_author
)
...
...
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