aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-03-25 17:01:59 +0100
committerMatěj Cepl <mcepl@redhat.com>2010-03-25 17:01:59 +0100
commit4e2865ca5fef78a422db188c8b515b1d298ae87a (patch)
treeca26a8834cd1fecd14d80fb506b4fbac7f056e35
parent6db662a9d56ea1ed0eb807f7764a54a66a0d8276 (diff)
downloadbugzilla-triage-4e2865ca5fef78a422db188c8b515b1d298ae87a.tar.gz
Make backtrace parsing configurable (default: off)
-rw-r--r--BugZappers_data.json1
-rw-r--r--bugzillaBugTriage.js5
2 files changed, 5 insertions, 1 deletions
diff --git a/BugZappers_data.json b/BugZappers_data.json
index 97303e7..d76aaef 100644
--- a/BugZappers_data.json
+++ b/BugZappers_data.json
@@ -89,6 +89,7 @@
"queryButton": true,
"upstreamButton": false,
"submitsLogging": false,
+ "parseAbrtBacktraces": false,
"newUpstreamBug": [
],
"queryUpstreamBug": [
diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js
index 7eda565..cfc3025 100644
--- a/bugzillaBugTriage.js
+++ b/bugzillaBugTriage.js
@@ -95,6 +95,7 @@ var suspiciousComponents = [];
var signatureFedoraString = "";
// TODO we should have an array SpecialFlags instead of multiple Boolean
// variables
+var parseAbrtBacktraces = false;
var queryButtonAvailable = false;
var upstreamButtonAvailable = false;
var logSubmits = false;
@@ -147,6 +148,7 @@ loadJSON(jsonDataURL, function(response) {
defAssigneeList = response.defaultAssignee;
queryButtonAvailable = response.queryButton;
upstreamButtonAvailable = response.upstreamButton;
+ parseAbrtBacktraces = response.parseAbrtBacktraces;
logSubmits = response.submitsLogging;
newUpstreamBugsURLArray = response.newUpstreamBug;
queryUpstreamBugsURLArray = response.queryUpstreamBug;
@@ -2140,7 +2142,8 @@ function BzPage(doc) {
// Dig out backtrace
this.btSnippet = "";
- if (AbrtRE.test(this.title)) {
+ console.log("parseAbrtBacktraces = " + parseAbrtBacktraces);
+ if (parseAbrtBacktraces && AbrtRE.test(this.title)) {
var notedLabel = this.dok.querySelector("label[for='newcc']");
while (notedLabel.firstChild) {