aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-03-01 22:52:30 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-03-01 22:54:12 +0100
commit5957bf89411f587d6070afadfd33cbacbc173b45 (patch)
treeaf7ddc655656d4caf0261e835854430e3b6d12df
parentb8b0a3b659141021e5f53fe55000eac22aa1d45a (diff)
downloadbugzilla-triage-5957bf89411f587d6070afadfd33cbacbc173b45.tar.gz
Logger at least creates new records.
-rw-r--r--.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/476bde43-fa24-445f-a79e-b3d251bc515a/values2
-rw-r--r--.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/c81c6f54-62b8-471f-92b0-d67c5aa23bc1/values17
-rw-r--r--.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/fe5d2894-18a6-4864-b7e6-1eba7e300425/values2
-rw-r--r--.be/id-cache9
-rw-r--r--data/lib/bzpage.js29
-rw-r--r--data/lib/skip-bug.js1
-rw-r--r--data/lib/util.js2
-rw-r--r--lib/libbugzilla.js1
-rw-r--r--lib/main.js1
9 files changed, 36 insertions, 28 deletions
diff --git a/.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/476bde43-fa24-445f-a79e-b3d251bc515a/values b/.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/476bde43-fa24-445f-a79e-b3d251bc515a/values
index 3d8bca5..979094f 100644
--- a/.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/476bde43-fa24-445f-a79e-b3d251bc515a/values
+++ b/.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/476bde43-fa24-445f-a79e-b3d251bc515a/values
@@ -7,7 +7,7 @@ reporter: Matěj Cepl <mcepl@redhat.com>
severity: minor
-status: open
+status: closed
summary: Doesn't allow empty comment string in log
diff --git a/.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/c81c6f54-62b8-471f-92b0-d67c5aa23bc1/values b/.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/c81c6f54-62b8-471f-92b0-d67c5aa23bc1/values
new file mode 100644
index 0000000..d174295
--- /dev/null
+++ b/.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/c81c6f54-62b8-471f-92b0-d67c5aa23bc1/values
@@ -0,0 +1,17 @@
+creator: Matěj Cepl <mcepl@redhat.com>
+
+
+reporter: Matěj Cepl <mcepl@redhat.com>
+
+
+severity: minor
+
+
+status: open
+
+
+summary: Generate time sheet!
+
+
+time: Tue, 01 Mar 2011 21:53:13 +0000
+
diff --git a/.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/fe5d2894-18a6-4864-b7e6-1eba7e300425/values b/.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/fe5d2894-18a6-4864-b7e6-1eba7e300425/values
index de44a07..3843507 100644
--- a/.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/fe5d2894-18a6-4864-b7e6-1eba7e300425/values
+++ b/.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/fe5d2894-18a6-4864-b7e6-1eba7e300425/values
@@ -7,7 +7,7 @@ reporter: Matěj Cepl <mcepl@redhat.com>
severity: minor
-status: open
+status: closed
summary: storing log messages does not work.
diff --git a/.be/id-cache b/.be/id-cache
index 24256c7..0d9443b 100644
--- a/.be/id-cache
+++ b/.be/id-cache
@@ -2,11 +2,12 @@
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
-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
+c81c6f54-62b8-471f-92b0-d67c5aa23bc1 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/c81c6f54-62b8-471f-92b0-d67c5aa23bc1
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
-d4145155-0ef1-409e-9236-261eb08f75d5 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/d4145155-0ef1-409e-9236-261eb08f75d5
+11c4a6bb-a7a5-4d18-bab5-14ab119bb3ef .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/ca8df3f8-7557-4730-bcca-3707776f5db4/comments/11c4a6bb-a7a5-4d18-bab5-14ab119bb3ef
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
@@ -16,10 +17,10 @@ fcebd19c-12b9-43ae-bc54-7cae39396e9f .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bu
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
99abb100-a0e8-49b0-8799-a47e4d5fb0b3 .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/99abb100-a0e8-49b0-8799-a47e4d5fb0b3
-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
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
-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
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 807793a..e8b2b95 100644
--- a/data/lib/bzpage.js
+++ b/data/lib/bzpage.js
@@ -758,25 +758,23 @@ function getLogin () {
}
function addLogRecord() {
- console.log("addLogRecord entered");
var rec = {};
rec.date = new Date();
rec.url = document.location.toString();
rec.title = document.title;
var comment = window.prompt(
"Enter comments for this comment");
- console.log("window.prompt = " + window.prompt);
- console.log("comment = " + comment);
- if (comment && comment.length > 0) {
- comment = comment.trim();
- rec.comment = comment;
- var dateStr = getISODate(rec.date);
- var urlStr = window.location.hostname;
- var bugNo = getBugNoFromURL(window.location.href);
- rec.key = dateStr + "+" +
- urlStr + "+" + bugNo;
- console.log("addLogRecord : rec = " + rec.toSource())
- postMessage(new Message("AddLogRecord", rec));
+ if (comment) {
+ if (comment.length > 0) {
+ comment = comment.trim();
+ rec.comment = comment;
+ var dateStr = getISODate(rec.date);
+ var urlStr = window.location.hostname;
+ var bugNo = getBugNoFromURL(window.location.href);
+ rec.key = dateStr + "+" +
+ urlStr + "+" + bugNo;
+ postMessage(new Message("AddLogRecord", rec));
+ }
return rec;
}
return null;
@@ -797,10 +795,7 @@ function setUpLogging () {
// logging all submits for timesheet
if (!submitHandlerInstalled) {
document.forms.namedItem("changeform").addEventListener("submit",function (evt) {
- console.log("addLogRecord = " + addLogRecord);
- var logRecord = addLogRecord();
- console.log("logRecord = " + logRecord.toSource());
- if (logRecord === null) {
+ if (addLogRecord() === null) {
evt.stopPropagation();
evt.preventDefault();
}
diff --git a/data/lib/skip-bug.js b/data/lib/skip-bug.js
index 9fcb531..da6f606 100644
--- a/data/lib/skip-bug.js
+++ b/data/lib/skip-bug.js
@@ -10,7 +10,6 @@ function reloadPage() {
exec(titleElems[0].textContent);
var hostname = document.location.hostname;
if (REArr) {
- console.log("Reloading bug " + REArr[1] + "!");
document.location = stemURL.
replace('HOSTNAME',hostname) + REArr[1];
}
diff --git a/data/lib/util.js b/data/lib/util.js
index 8232e9f..6c204ff 100644
--- a/data/lib/util.js
+++ b/data/lib/util.js
@@ -74,9 +74,7 @@ function getBugNo() {
* @return String with the bug ID
*/
function getBugNoFromURL(url) {
- console.log("getBugNoFromURL : url = " + url);
var params = parseURL(url).params;
- console.log("getBugNoFromURL : params = " + params.toSource());
if (params && params.id) {
return params.id;
}
diff --git a/lib/libbugzilla.js b/lib/libbugzilla.js
index 23b6869..600d193 100644
--- a/lib/libbugzilla.js
+++ b/lib/libbugzilla.js
@@ -187,7 +187,6 @@ exports.getInstalledPackages = function getInstalledPackages(locationLoginObj, c
var passwObj = getPassword(locationLoginObj.login, passDomain);
// In order to avoid sending whole password to the content script,
// we are sending just these two Booleans.
- console.log("getInstalledPackages : passwObj = " + passwObj.toSource());
config.constantData.passwordState = {
passAvailable: (passwObj.password !== null),
withoutPass: passwObj.withoutPass
diff --git a/lib/main.js b/lib/main.js
index 022244f..accaa0e 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -43,7 +43,6 @@ function skipThisPage(doc) {
}
var messageHandler = exports.messageHandler = function messageHandler(worker, msg) {
- console.log("messageHandler: msg = " + msg.toSource());
switch (msg.cmd) {
case "LogMessage":
console.log(msg.data);