Add patch set and change requests into contribution summary
Change-Id: I72e1f03faecbbd5cf9a7db52d57533451484be3e
This commit is contained in:
parent
be0b33979f
commit
4807342de8
@ -173,6 +173,8 @@ def get_contribution_summary(records):
|
||||
email_count = 0
|
||||
filed_bug_count = 0
|
||||
resolved_bug_count = 0
|
||||
patch_set_count = 0
|
||||
change_request_count = 0
|
||||
|
||||
for record in records:
|
||||
record_type = record.record_type
|
||||
@ -194,6 +196,10 @@ def get_contribution_summary(records):
|
||||
filed_bug_count += 1
|
||||
elif record_type == 'bugr':
|
||||
resolved_bug_count += 1
|
||||
elif record_type == 'patch':
|
||||
patch_set_count += 1
|
||||
elif record_type == 'review':
|
||||
change_request_count += 1
|
||||
|
||||
result = {
|
||||
'drafted_blueprint_count': drafted_blueprint_count,
|
||||
@ -204,6 +210,8 @@ def get_contribution_summary(records):
|
||||
'marks': marks,
|
||||
'filed_bug_count': filed_bug_count,
|
||||
'resolved_bug_count': resolved_bug_count,
|
||||
'patch_set_count': patch_set_count,
|
||||
'change_request_count': change_request_count,
|
||||
}
|
||||
return result
|
||||
|
||||
|
@ -32,6 +32,8 @@
|
||||
<div>Total commits: <b>${commit_count}</b></div>
|
||||
<div>Total LOC: <b>${loc}</b></div>
|
||||
<div>Review stat (-2, -1, +1, +2, A): <b>${marks["-2"]}, ${marks["-1"]}, ${marks["1"]}, ${marks["2"]}, ${marks["A"]}</b></div>
|
||||
<div>Change Requests: <b>${change_request_count}</b></div>
|
||||
<div>Patch Sets: <b>${patch_set_count}</b></div>
|
||||
<div>Draft Blueprints: <b>${drafted_blueprint_count}</b></div>
|
||||
<div>Completed Blueprints: <b>${completed_blueprint_count}</b></div>
|
||||
<div>Filed Bugs: <b>${filed_bug_count}</b></div>
|
||||
|
Loading…
Reference in New Issue
Block a user