aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-03-02 13:37:39 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-03-02 13:38:52 +0100
commit40a7136e0946f1f9d938fd65e0f416cd3455413f (patch)
tree27abaa6e91f4519196fce49b7d5922aa155ebf48
parent4eb99a9ead80166c27c49437b686ca6f2442da2d (diff)
downloadbugzilla-triage-40a7136e0946f1f9d938fd65e0f416cd3455413f.tar.gz
Add unknown PCI ID to the clipboard.
-rw-r--r--.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/020d417e-bb74-4a80-a7b5-9f858bb93994/values17
-rw-r--r--.be/id-cache13
-rw-r--r--data/lib/bzpage.js4
-rw-r--r--data/lib/rhbzpage.js4
-rw-r--r--lib/libbugzilla.js4
-rw-r--r--lib/main.js3
6 files changed, 38 insertions, 7 deletions
diff --git a/.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/020d417e-bb74-4a80-a7b5-9f858bb93994/values b/.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/020d417e-bb74-4a80-a7b5-9f858bb93994/values
new file mode 100644
index 0000000..aee706f
--- /dev/null
+++ b/.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/020d417e-bb74-4a80-a7b5-9f858bb93994/values
@@ -0,0 +1,17 @@
+creator: Matěj Cepl <mcepl@redhat.com>
+
+
+reporter: Matěj Cepl <mcepl@redhat.com>
+
+
+severity: minor
+
+
+status: open
+
+
+summary: Ability to skip over commenting by empty string
+
+
+time: Wed, 02 Mar 2011 12:34:41 +0000
+
diff --git a/.be/id-cache b/.be/id-cache
index 0d9443b..c56d0ab 100644
--- a/.be/id-cache
+++ b/.be/id-cache
@@ -2,25 +2,26 @@
a9d5d16d-1c7d-4918-8be2-bd499a799b54 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/989f85c8-3941-4a97-a447-bdbf0fbbd7f4/comments/a9d5d16d-1c7d-4918-8be2-bd499a799b54
ba22934d-f4f1-42ce-95f5-c56394a83ccc .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/ad8fee41-b8dd-4c4e-85e1-4ab96923cecb/comments/ba22934d-f4f1-42ce-95f5-c56394a83ccc
ecff7ddb-1d5f-406b-9b3b-18388d575604 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/5718cbae-15da-4921-8371-5be69197c4ed/comments/ecff7ddb-1d5f-406b-9b3b-18388d575604
-d4145155-0ef1-409e-9236-261eb08f75d5 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/d4145155-0ef1-409e-9236-261eb08f75d5
-c81c6f54-62b8-471f-92b0-d67c5aa23bc1 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/c81c6f54-62b8-471f-92b0-d67c5aa23bc1
+11c4a6bb-a7a5-4d18-bab5-14ab119bb3ef .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/ca8df3f8-7557-4730-bcca-3707776f5db4/comments/11c4a6bb-a7a5-4d18-bab5-14ab119bb3ef
12d5c683-231b-4b4f-8f05-b6ae32a5b0a8 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/e16d92aa-df09-4851-b6a0-3ed0ea2ff0fa/comments/12d5c683-231b-4b4f-8f05-b6ae32a5b0a8
476bde43-fa24-445f-a79e-b3d251bc515a .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/476bde43-fa24-445f-a79e-b3d251bc515a
29f5f313-559a-4fea-88fa-fc4a4fc94112 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/5fc172f0-231a-4d0e-9c6b-8d9f60abbfba/comments/29f5f313-559a-4fea-88fa-fc4a4fc94112
-11c4a6bb-a7a5-4d18-bab5-14ab119bb3ef .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/ca8df3f8-7557-4730-bcca-3707776f5db4/comments/11c4a6bb-a7a5-4d18-bab5-14ab119bb3ef
+d4145155-0ef1-409e-9236-261eb08f75d5 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/d4145155-0ef1-409e-9236-261eb08f75d5
5fc172f0-231a-4d0e-9c6b-8d9f60abbfba .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/5fc172f0-231a-4d0e-9c6b-8d9f60abbfba
d315d824-bb0d-4a28-941d-88a1aa77ffa0 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/d315d824-bb0d-4a28-941d-88a1aa77ffa0
88fa923c-59ee-47bf-b7c8-d1a7a7bdeb33 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/88fa923c-59ee-47bf-b7c8-d1a7a7bdeb33
f7ecb466-c223-40c7-a44b-6e1f8f5c6df4 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/f7ecb466-c223-40c7-a44b-6e1f8f5c6df4
-fcebd19c-12b9-43ae-bc54-7cae39396e9f .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/fcebd19c-12b9-43ae-bc54-7cae39396e9f
+020d417e-bb74-4a80-a7b5-9f858bb93994 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/020d417e-bb74-4a80-a7b5-9f858bb93994
+c81c6f54-62b8-471f-92b0-d67c5aa23bc1 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/c81c6f54-62b8-471f-92b0-d67c5aa23bc1
9ba533b6-61b6-437a-b4b6-be12aae025e5 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/9ba533b6-61b6-437a-b4b6-be12aae025e5
ca8df3f8-7557-4730-bcca-3707776f5db4 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/ca8df3f8-7557-4730-bcca-3707776f5db4
b9e11546-5ec7-4464-8070-35c5510c13ff .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/d4145155-0ef1-409e-9236-261eb08f75d5/comments/b9e11546-5ec7-4464-8070-35c5510c13ff
+fcebd19c-12b9-43ae-bc54-7cae39396e9f .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/fcebd19c-12b9-43ae-bc54-7cae39396e9f
99abb100-a0e8-49b0-8799-a47e4d5fb0b3 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/99abb100-a0e8-49b0-8799-a47e4d5fb0b3
-bd5cef03-c389-4fab-8336-30a02ee97261 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/bd5cef03-c389-4fab-8336-30a02ee97261
+27c176c2-26be-4a51-bb71-2aff47c5484b .be/27c176c2-26be-4a51-bb71-2aff47c5484b
5718cbae-15da-4921-8371-5be69197c4ed .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/5718cbae-15da-4921-8371-5be69197c4ed
62c92ec0-678a-4834-ad69-76aff18e2227 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/ad8fee41-b8dd-4c4e-85e1-4ab96923cecb/comments/62c92ec0-678a-4834-ad69-76aff18e2227
-27c176c2-26be-4a51-bb71-2aff47c5484b .be/27c176c2-26be-4a51-bb71-2aff47c5484b
+bd5cef03-c389-4fab-8336-30a02ee97261 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/bd5cef03-c389-4fab-8336-30a02ee97261
70b1e7f3-6446-45dc-91e5-e338d51770aa .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/99abb100-a0e8-49b0-8799-a47e4d5fb0b3/comments/70b1e7f3-6446-45dc-91e5-e338d51770aa
fe5d2894-18a6-4864-b7e6-1eba7e300425 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/fe5d2894-18a6-4864-b7e6-1eba7e300425
ad8fee41-b8dd-4c4e-85e1-4ab96923cecb .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/ad8fee41-b8dd-4c4e-85e1-4ab96923cecb
diff --git a/data/lib/bzpage.js b/data/lib/bzpage.js
index e8b2b95..aa81370 100644
--- a/data/lib/bzpage.js
+++ b/data/lib/bzpage.js
@@ -765,6 +765,7 @@ function addLogRecord() {
var comment = window.prompt(
"Enter comments for this comment");
if (comment) {
+ comment = comment.trim();
if (comment.length > 0) {
comment = comment.trim();
rec.comment = comment;
@@ -774,7 +775,10 @@ function addLogRecord() {
rec.key = dateStr + "+" +
urlStr + "+" + bugNo;
postMessage(new Message("AddLogRecord", rec));
+ } else {
+ console.log("Empty string!");
}
+ console.log("addLogRecord : rec = " + rec.toSource());
return rec;
}
return null;
diff --git a/data/lib/rhbzpage.js b/data/lib/rhbzpage.js
index 8d52174..bca0901 100644
--- a/data/lib/rhbzpage.js
+++ b/data/lib/rhbzpage.js
@@ -574,6 +574,8 @@ function fillInWhiteBoard(PCIidArrObj) {
try {
cardName = constantData.chipNames[PCIid][0];
} catch (e if e instanceof TypeError) {
+ PCIid = PCIid.toLowerCase().replace(",",":");
+ postMessage(new Message("SetClipboard", PCIid.toString()));
alert("PCI ID " + PCIid + " is not known!");
return ; // early termination
} catch (e) {
@@ -868,7 +870,7 @@ function parseBacktrace (ret) {
function RHBZinit() {
// inheritance ... call superobject's constructor
var AbrtRE = new RegExp("^\\s*\\[abrt\\]");
- var FillMagicDoneRE = new RegExp("^\\s*\\[[0-9a-zA-Z]*\\]");
+ var FillMagicDoneRE = new RegExp("^\\s*\\[[0-9a-zA-Z_]*\\]");
var btSnippet = "";
var signaturesCounter = 0;
diff --git a/lib/libbugzilla.js b/lib/libbugzilla.js
index 600d193..bdcf8fb 100644
--- a/lib/libbugzilla.js
+++ b/lib/libbugzilla.js
@@ -204,6 +204,10 @@ exports.getClipboard = function getClipboard(cb) {
cb(clipboard.get());
};
+exports.setClipboard = function setClipboard(stuff) {
+ clipboard.set(stuff, "text");
+};
+
exports.getURL = function getURL(url, callback) {
Request({
url: url,
diff --git a/lib/main.js b/lib/main.js
index accaa0e..191391f 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -73,6 +73,9 @@ var messageHandler = exports.messageHandler = function messageHandler(worker, ms
worker.postMessage(new Message(msg.data, clipboard));
});
break;
+ case "SetClipboard":
+ libbz.setClipboard(msg.data);
+ break;
case "ChangeJSONURL":
libbz.changeJSONURL();
break;