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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user