diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-12-21 11:34:31 +0100 |
---|---|---|
committer | Xisco Fauli <anistenis@gmail.com> | 2016-12-21 11:48:10 +0100 |
commit | 52806f402ef87e98bebec13b6e13406197b47950 (patch) | |
tree | 9001422d2449688e5970a3633b94a1261409ee4a | |
parent | 7178021014bdf2668f8d1e520743e3cee11fc4bd (diff) |
Ignore meta and deletionrequest bugs in unconfirmed count
-rwxr-xr-x | esc-reporting/esc-analyze.py | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/esc-reporting/esc-analyze.py b/esc-reporting/esc-analyze.py index 17b9f15..2b2863c 100755 --- a/esc-reporting/esc-analyze.py +++ b/esc-reporting/esc-analyze.py @@ -417,44 +417,44 @@ def analyze_qa(): print("qa: analyze bugzilla", flush=True) for key, row in bugzillaData['bugs'].items(): - email = util_check_mail(row['creator_detail']['real_name'], row['creator']) - xDate = datetime.datetime.strptime(row['last_change_time'], "%Y-%m-%dT%H:%M:%SZ") - creationDate = datetime.datetime.strptime(row['creation_time'], "%Y-%m-%dT%H:%M:%SZ") - if xDate > cfg['cutDate']: - continue - - - if row['status'] == 'UNCONFIRMED': - statList['data']['qa']['unconfirmed']['count'] += 1 - if 'needsUXEval' in row['keywords']: - statList['data']['qa']['unconfirmed']['needsUXEval'] += 1 - if 'needsDevAdvice' in row['keywords']: - statList['data']['qa']['unconfirmed']['needsDevAdvice'] += 1 - if 'haveBacktrace' in row['keywords']: - statList['data']['qa']['unconfirmed']['haveBacktrace'] += 1 - if row['severity'] == 'enhancement': - statList['data']['qa']['unconfirmed']['enhancement'] += 1 - - util_build_period_stat(creationDate, email, 'qa', 'owner') - - for change in row['history']: - email = util_check_mail('*UNKNOWN*', change['who']) - xDate = datetime.datetime.strptime(change['when'], "%Y-%m-%dT%H:%M:%SZ") - for entry in change['changes']: - if entry['field_name'] == 'keywords': - keywordsAdded = entry['added'].split(", ") - for keyword in keywordsAdded: - if keyword == 'bisected': - util_build_period_stat(xDate, email, 'qa', 'bisected') - if keyword == 'bibisected': - util_build_period_stat(xDate, email, 'qa', 'bibisected') - if keyword == 'regression': - util_build_period_stat(xDate, email, 'qa', 'regression') - if keyword == 'haveBacktrace': - util_build_period_stat(xDate, email, 'qa', 'backtrace') - elif entry['field_name'] == 'resolution': - if entry['added'] == 'FIXED': - util_build_period_stat(xDate, email, 'qa', 'fixed') + #Ignore META bugs and deletionrequest bugs. + if not row['summary'].startswith('[META]') \ + and row['component'] != 'deletionrequest': + email = util_check_mail(row['creator_detail']['real_name'], row['creator']) + xDate = datetime.datetime.strptime(row['last_change_time'], "%Y-%m-%dT%H:%M:%SZ") + creationDate = datetime.datetime.strptime(row['creation_time'], "%Y-%m-%dT%H:%M:%SZ") + + if row['status'] == 'UNCONFIRMED': + statList['data']['qa']['unconfirmed']['count'] += 1 + if 'needsUXEval' in row['keywords']: + statList['data']['qa']['unconfirmed']['needsUXEval'] += 1 + if 'needsDevAdvice' in row['keywords']: + statList['data']['qa']['unconfirmed']['needsDevAdvice'] += 1 + if 'haveBacktrace' in row['keywords']: + statList['data']['qa']['unconfirmed']['haveBacktrace'] += 1 + if row['severity'] == 'enhancement': + statList['data']['qa']['unconfirmed']['enhancement'] += 1 + + util_build_period_stat(creationDate, email, 'qa', 'owner') + + for change in row['history']: + email = util_check_mail('*UNKNOWN*', change['who']) + xDate = datetime.datetime.strptime(change['when'], "%Y-%m-%dT%H:%M:%SZ") + for entry in change['changes']: + if entry['field_name'] == 'keywords': + keywordsAdded = entry['added'].split(", ") + for keyword in keywordsAdded: + if keyword == 'bisected': + util_build_period_stat(xDate, email, 'qa', 'bisected') + if keyword == 'bibisected': + util_build_period_stat(xDate, email, 'qa', 'bibisected') + if keyword == 'regression': + util_build_period_stat(xDate, email, 'qa', 'regression') + if keyword == 'haveBacktrace': + util_build_period_stat(xDate, email, 'qa', 'backtrace') + elif entry['field_name'] == 'resolution': + if entry['added'] == 'FIXED': + util_build_period_stat(xDate, email, 'qa', 'fixed') def analyze_myfunc(): global cfg, statList, openhubData, bugzillaData, gerritData, gitData, licenceCompanyData, licencePersonalData |