Correct mapping of person-day metric to record types

Also refactor metric-to-record-type mapping since now it is 1:N

Change-Id: Ia0929b51dfbaddee848e9f095da65e2a9fc38a39
This commit is contained in:
Ilya Shakhat
2014-07-25 16:39:18 +04:00
parent 42ab18eacc
commit c569364b16
4 changed files with 19 additions and 26 deletions

View File

@@ -43,17 +43,18 @@ METRIC_LABELS = {
}
METRIC_TO_RECORD_TYPE = {
'loc': 'commit',
'commits': 'commit',
'marks': 'mark',
'emails': 'email',
'bpd': 'bpd',
'bpc': 'bpc',
'filed-bugs': 'bugf',
'resolved-bugs': 'bugr',
'members': 'member',
'ci': 'ci_vote',
'patches': 'patch',
'loc': ['commit'],
'commits': ['commit'],
'marks': ['mark'],
'emails': ['email'],
'bpd': ['bpd'],
'bpc': ['bpc'],
'filed-bugs': ['bugf'],
'resolved-bugs': ['bugr'],
'members': ['member'],
'person-day': ['mark', 'patch', 'email', 'bpd', 'bugf'],
'ci': ['ci_vote'],
'patches': ['patch'],
}
FILTER_PARAMETERS = ['release', 'project_type', 'module', 'company', 'user_id',