summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-03-06 01:30:05 +0100
committerGitHub <noreply@github.com>2018-03-06 01:30:05 +0100
commitb588eea89a5cdd24ee5a3f00a12e71b8a096660e (patch)
treeed91c8f05e0d9b161d0f67642052f52563784863 /contrib
parent7c771430c5e158e7a544774b64cb67709df52a16 (diff)
downloadbugzilla-b588eea89a5cdd24ee5a3f00a12e71b8a096660e.tar.gz
bugzilla-b588eea89a5cdd24ee5a3f00a12e71b8a096660e.tar.xz
Bug 1343248 - make secbugstats do less work
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/secbugstats/bin/curlbug.py9
-rwxr-xr-xcontrib/secbugstats/bin/gather.sh2
2 files changed, 1 insertions, 10 deletions
diff --git a/contrib/secbugstats/bin/curlbug.py b/contrib/secbugstats/bin/curlbug.py
index ec4ce8d1d..420b99d6f 100755
--- a/contrib/secbugstats/bin/curlbug.py
+++ b/contrib/secbugstats/bin/curlbug.py
@@ -36,15 +36,6 @@ tocheck = {"sg_critical" : "keywords=sec-critical;keywords_type=allwords;bug_sta
"sg_high" : "keywords=sec-high;keywords_type=allwords;bug_status=UNCONFIRMED;bug_status=NEW;bug_status=ASSIGNED;bug_status=REOPENED;classification=Client%20Software;classification=Components",
"sg_moderate" : "keywords=sec-moderate;keywords_type=allwords;bug_status=UNCONFIRMED;bug_status=NEW;bug_status=ASSIGNED;bug_status=REOPENED;classification=Client%20Software;classification=Components",
"sg_low" : "keywords=sec-low;keywords_type=allwords;bug_status=UNCONFIRMED;bug_status=NEW;bug_status=ASSIGNED;bug_status=REOPENED;classification=Client%20Software;classification=Components",
- "sg_total" : "keywords=sec-critical%20sec-high%20sec-moderate%20sec-low;keywords_type=anywords;bug_status=UNCONFIRMED;bug_status=NEW;bug_status=ASSIGNED;bug_status=REOPENED;classification=Client%20Software;classification=Components",
- "sg_unconfirmed" : "bug_status=UNCONFIRMED;field0-0-0=bug_group;type0-0-1=substring;field0-0-1=status_whiteboard;value0-0-2=sec-;classification=Client%20Software;classification=Components;status_whiteboard_type=notregexp;status_whiteboard=sg%3Aneedinfo;field0-0-2=keywords;value0-0-1=[sg%3A;type0-0-0=equals;value0-0-0=core-security;type0-0-2=substring",
- "sg_needstriage" : "type0-1-0=notsubstring;field0-1-0=keywords;field0-0-0=bug_group;status_whiteboard_type=notregexp;value0-1-0=sec-;status_whiteboard=\[sg%3A;bug_status=UNCONFIRMED;bug_status=NEW;bug_status=ASSIGNED;bug_status=REOPENED;type0-0-0=equals;value0-0-0=core-security",
- "sg_investigate" : "status_whiteboard=[sg%3Ainvestigat;status_whiteboard_type=allwordssubstr;bug_status=UNCONFIRMED;bug_status=NEW;bug_status=ASSIGNED;bug_status=REOPENED",
- "sg_vector" : "keywords=sec-vector;keywords_type=allwords;bug_status=UNCONFIRMED;bug_status=NEW;bug_status=ASSIGNED;bug_status=REOPENED;classification=Client%20Software;classification=Components",
- "sg_needinfo" : "status_whiteboard=[sg%3Aneedinfo;status_whiteboard_type=allwordssubstr;bug_status=UNCONFIRMED;bug_status=NEW;bug_status=ASSIGNED;bug_status=REOPENED",
- "sg_untouched" : "keywords=sec-critical%20sec-high%20sec-moderate%20sec-low;keywords_type=anywords;field0-0-0=days_elapsed;classification=Client%20Software;classification=Components;bug_status=UNCONFIRMED;bug_status=NEW;bug_status=ASSIGNED;bug_status=REOPENED;type0-0-0=greaterthan;value0-0-0=14",
- "sg_opened" : "field0-0-0=bug_group;type0-0-1=substring;field0-0-1=status_whiteboard;value0-0-2=sec-;chfield=[Bug%20creation];chfieldfrom=-1w;field0-0-2=keywords;value0-0-1=[sg%3A;type0-0-0=equals;value0-0-0=core-security;type0-0-2=substring;classification=Client%20Software;classification=Components",
- "sg_closed" : "type0-1-0=notsubstring;field0-1-0=keywords;field0-0-0=bug_group;type0-0-1=substring;field0-0-1=status_whiteboard;classification=Client%20Software;classification=Components;value0-0-2=sec-;chfield=resolution;chfieldfrom=-1w;value0-1-0=sec-review;bug_status=RESOLVED;bug_status=VERIFIED;bug_status=CLOSED;field0-0-2=keywords;value0-0-1=[sg%3A;type0-0-0=equals;value0-0-0=core-security;type0-0-2=substring",
}
now = time.localtime()
diff --git a/contrib/secbugstats/bin/gather.sh b/contrib/secbugstats/bin/gather.sh
index fd7de7620..50ababe52 100755
--- a/contrib/secbugstats/bin/gather.sh
+++ b/contrib/secbugstats/bin/gather.sh
@@ -23,7 +23,7 @@ echo "[end curlbug.py]"
# Process each JSON file that the preceding script produced to find out
# the product, component, bug numbers, bug ages, etc. for each category
echo "[morestats.py `date +%Y-%m-%d\ %T`]"
-for i in `ls $JSON_CUR/*sg_{low,moderate,high,critical,needstriage,unconfirmed,opened,closed,total,untouched,investigate,needinfo,vector}.json`;
+for i in `ls $JSON_CUR/*sg_{low,moderate,high,critical}.json`;
do
$SCRIPTS_DIR/morestats.py $i;
done