diff options
author | Matěj Cepl <mcepl@redhat.com> | 2013-12-12 22:35:58 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2013-12-12 22:40:32 +0100 |
commit | bb4766110c286efafe9efa6b9658ea7065832062 (patch) | |
tree | b52cc4d602e5f41b542c611d3a1165a6ca4cc3fd | |
parent | 4d7f05488f1bcd37ef128b5464975d58a98a9d79 (diff) | |
download | bugzilla-triage-1.9.tar.gz |
Fix sending bugs upstream, adding external bug, and no munching on <title>1.9
Specifically:
* add Evolution to data/newUpstreamBug.json
* fix new (and a way better!) ID of the inputBox for the adding
external bug ID
* remove misjudged attempt to remove Bug from //head/title
-rw-r--r-- | .be/6e705c50-2e25-43dd-9c06-90e436c2c636/bugs/725ae336-011b-4172-8247-d36677d8de48/values | 2 | ||||
-rw-r--r-- | data/lib/otherButtons.js | 5 | ||||
-rw-r--r-- | data/newUpstreamBug.json | 8 | ||||
-rw-r--r-- | data/rhlib/rhbzpage.js | 8 | ||||
-rw-r--r-- | lib/libbugzilla.js | 1 | ||||
-rw-r--r-- | lib/main.js | 3 | ||||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | update.rdf | 15 |
8 files changed, 32 insertions, 12 deletions
diff --git a/.be/6e705c50-2e25-43dd-9c06-90e436c2c636/bugs/725ae336-011b-4172-8247-d36677d8de48/values b/.be/6e705c50-2e25-43dd-9c06-90e436c2c636/bugs/725ae336-011b-4172-8247-d36677d8de48/values index a26d560..5b1267f 100644 --- a/.be/6e705c50-2e25-43dd-9c06-90e436c2c636/bugs/725ae336-011b-4172-8247-d36677d8de48/values +++ b/.be/6e705c50-2e25-43dd-9c06-90e436c2c636/bugs/725ae336-011b-4172-8247-d36677d8de48/values @@ -26,7 +26,7 @@ - "status": "open", + "status": "fixed", diff --git a/data/lib/otherButtons.js b/data/lib/otherButtons.js index 80d9274..48d3505 100644 --- a/data/lib/otherButtons.js +++ b/data/lib/otherButtons.js @@ -150,11 +150,6 @@ function setBranding(things) { .toString() + " none"; - // Remove "Bug" from the title of the bug page, so we have more space with - // plenty of tabs - var titleElem = document.getElementsByTagName("title")[0]; - - titleElem.textContent = titleElem.textContent.slice(4); var bodyTitleParent = document .getElementById("summary_alias_container").parentNode; var bodyTitleElem = bodyTitleParent.getElementsByTagName("b")[0]; diff --git a/data/newUpstreamBug.json b/data/newUpstreamBug.json index f3aba73..9fe7883 100644 --- a/data/newUpstreamBug.json +++ b/data/newUpstreamBug.json @@ -26,5 +26,13 @@ { "regexp": "empathy.*", "addr": "https://bugzilla.gnome.org/enter_bug.cgi?product=empathy" + }, + { + "regexp": "evolution.*", + "addr": "https://bugzilla.gnome.org/enter_bug.cgi?product=evolution" + }, + { + "regexp": "gnome.*", + "addr": "https://bugzilla.gnome.org/enter_bug.cgi" } ] diff --git a/data/rhlib/rhbzpage.js b/data/rhlib/rhbzpage.js index fc46d23..c1bca62 100644 --- a/data/rhlib/rhbzpage.js +++ b/data/rhlib/rhbzpage.js @@ -168,8 +168,11 @@ function sendBugUpstream(thgs) { return; } if (localThings) { + myDebug('sendBugUpstream: creating new bug for component ' + + getComponent()); var admitMsg = "(originally filed as " + window.location.href + ")\n\n"; var urlStr = filterByRegexp(constantData.newUpstreamBug, getComponent()); + myDebug('sendBugUpstream: urlStr = ' + urlStr); if (!urlStr) { return null; } @@ -337,7 +340,7 @@ function analyzeXorgLog(attachID, backMsg) { */ function addExternalBug() { // that's a bad id, if there is a one. :) - var inputBox = document.getElementById("inputbox"); + var inputBox = document.getElementById("external_bug_id"); var externalBugID = 0; var wholeURL = ""; @@ -438,8 +441,7 @@ function RHBZinit(things) { // inheritance ... call superobject's constructor var AbrtRE = new RegExp("^\\s*\\[abrt\\]"); var btSnippet = ""; - sendBugUpstream(things); // FIXME this is not a real call, - // just initializing static variable + sendBugUpstream(things); var chipMagicInterestingLine = ""; diff --git a/lib/libbugzilla.js b/lib/libbugzilla.js index bc94aff..bffa5e3 100644 --- a/lib/libbugzilla.js +++ b/lib/libbugzilla.js @@ -275,6 +275,7 @@ var openURLInNewTab = exports.openURLInNewTab = function openURLInNewTab(url) { }; exports.createUpstreamBug = function createUpstreamBug(urlStr, subjectStr, commentStr) { + debug('createUpstreamBug: urlStr = ' + urlStr + ', subjectStr = ' + subjectStr); var payload = JSON.stringify({ subject: subjectStr, comment: commentStr diff --git a/lib/main.js b/lib/main.js index a1163db..8302272 100644 --- a/lib/main.js +++ b/lib/main.js @@ -162,5 +162,4 @@ contextMenu.Item({ require("sdk/clipboard").set(comment); } }); -//tabs.open("https://bugs.eclipse.org/bugs/show_bug.cgi?id=304933"); -//tabs.open("https://bugzilla.redhat.com/show_bug.cgi?id=348531"); +//tabs.open("https://bugzilla.redhat.com/show_bug.cgi?id=1033263"); diff --git a/package.json b/package.json index 584048c..3932a76 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Additional buttons and other function helping in the triage on bugzilla", "author": "Matej Cepl (http://matej.ceplovi.cz)", "license": "MIT/X11 (http://opensource.org/licenses/mit-license.php) and MPL", - "version": "1.8", + "version": "1.9", "contributors": [ "Ehsan Akhgari (http://ehsanakhgari.org/) <ehsan@mozilla.com>", "Johnathan Nightingale (http://johnath.com) <johnath@mozilla.com>", @@ -412,6 +412,21 @@ xmlns:em="http://www.mozilla.org/2004/em-rdf#"> </em:targetApplication> </Description> </li> + <li> + <Description> + <em:version>1.9</em:version> + <em:targetApplication> + <Description> + <em:id> + {ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> + <em:minVersion>21.0</em:minVersion> + <em:maxVersion>25.0a1</em:maxVersion> + <em:updateLink> + https://fedorahosted.org/released/bugzilla-triage-scripts/bugzilla-triage-1.9.xpi</em:updateLink> + </Description> + </em:targetApplication> + </Description> + </li> </Seq> </em:updates> </Description> |