aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-05-14 11:02:18 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-05-14 11:02:18 +0200
commitb5962801901e35696f795ebf1f36076d25562f48 (patch)
tree97a13235e8250568d5dbf2af08b2292129a2f83a
parentcaa2c27429d408da9e43b30102e39881e9f34ba5 (diff)
downloadbugzilla-triage-b5962801901e35696f795ebf1f36076d25562f48.tar.gz
First attempts to create new format
-rw-r--r--RH_Data-packages.json256
-rw-r--r--bugzillaBugTriage.js7
2 files changed, 118 insertions, 145 deletions
diff --git a/RH_Data-packages.json b/RH_Data-packages.json
index a8f1b76..d58a967 100644
--- a/RH_Data-packages.json
+++ b/RH_Data-packages.json
@@ -3,6 +3,8 @@
"test": {
"test-all": {
"name": "Test lots of things",
+ "comment": "some comment",
+ "position": "topRow", // or BottomRow, or scrollDown
"product": "Thunderbird",
"component": "Internal Components",
"priority": "P1",
@@ -26,22 +28,118 @@
"platform": "All"
}
},
- "mozilla": {
- "safe-mode": {
- "name": "Safe Mode Question",
- "comment": "Have you tried safe mode? (see https://support.mozillamessaging.com/en-US/kb/Safe+Mode for more information)"
- },
- "extension-issue": {
- "name": "Response: Invalid due to extension issue",
- "comment": "Sorry, your issue is to do with an extension and we are unable to support it here. Please raise the issue direct with the extension author or on their site.\n\nYou may find details of how to do this here:\n\n******* INSERT LINK TO EXTENSION SITE *******",
- "status": "RESOLVED",
- "resolution": "INVALID"
- },
-
+ "rh-xorg": {
+// "topRow": [
+ "addgetlogstext": {
+ "name": "X logs",
+ "commentIdx": "getLogsString",
+ "status": "NEEDINFO",
+ "resolution": "",
+ "position": "topRow",
+ },
+ "addgetffrepro": {
+ "name": "Repro",
+ "commentIdx": "getAbrtReproInfo",
+ "status": "NEEDINFO",
+ "position": "topRow",
+ },
+ "addgetfirefoxinfo": {
+ "name": "GeckInf",
+ "commentIdx": "getFirefoxBacktraceString",
+ "status": "NEEDINFO",
+ "position": "topRow",
+ },
+ "webfailure": {
+ "name": "website",
+ "commentIdx": "websiteFailure",
+ "status": "CLOSED",
+ "resolution": "NOTABUG",
+ "position": "topRow",
+ },
+ "addnoresponse": {
+ "name": "NoRespns",
+ "commentIdx": "noResponseString",
+ "status": "CLOSED",
+ "resolution": "INSUFFICIENT_DATA",
+ "position": "topRow",
+ },
+ "addcloseupstream": {
+ "name": "CloseUP",
+ "status": "CLOSED",
+ "resolution": "UPSTREAM",
+ "position": "topRow",
+ },
+ "moveyourbutt": {
+ "name": "InfRemind",
+ "commentIdx": "moveYourButString",
+ "status": "NEEDINFO",
+ "position": "topRow",
+ },
+ "crashInFlash": {
+ "name": "flashCrash",
+ "commentIdx": "flashCrashString",
+ "status": "CLOSED",
+ "resolution": "CANTFIX",
+ "position": "topRow",
+ }
+// "bottomRow": [
+ "needinforbtn": {
+ "position": "bottomRow",
+ "name": "NEEDINFO",
+ "status": "NEEDINFO",
+ },
+ "closenvidia": {
+ "position": "bottomRow",
+ "name": "nVidia",
+ "commentIdx": "cantfixNvidiaString",
+ "status": "CLOSED",
+ "resolution": "CANTFIX",
+ },
+ "closeoldrhel": {
+ "position": "bottomRow",
+ "name": "old",
+ "commentIdx": "obsoleteRHELString",
+ "status": "CLOSED",
+ "resolution": "WONTFIX",
+ },
+ "notriagebtn": {
+ "position": "bottomRow",
+ "name": "noTriage",
+ "commentIdx": "noTriageString",
+ "status": "ASSIGNED",
+ "resolution": "ADDSELFCC",
+ },
+ "nodebugsymbols": {
+ "position": "bottomRow",
+ "name": "noDbg",
+ "commentIdx": "noDebugSymbols",
+ "status": "CLOSED",
+ "resolution": "INSUFFICIENT_DATA",
+ },
+ "issuetrackerbtn": {
+ "position": "bottomRow",
+ "name": "RHEL",
+ "commentIdx": "RHELString",
+ "status": "NEEDINFO",
+ },
+ "xloglivecdbtn": {
+ "position": "bottomRow",
+ "name": "InstFail",
+ "commentIdx": "getLogsLiveCDString",
+ "status": "NEEDINFO",
+ },
+ "closeOnRetest": {
+ "position": "bottomRow",
+ "name": "Retest",
+ "commentIdx": "thankLettingUsKnow",
+ "status": "CLOSED",
+ "resolution": "SOMERELEASE",
+ }
+ }
}
//*************************************************************
{
- "strings": {
+ "commentStrings": {
"noRHEL4String": "I don't think this will be fixed for RHEL4, which support covers now only security and major bugs.\n\nClosing as WONTFIX.",
"thankLettingUsKnow": "Thank you for letting us know.",
"noDebugSymbols": "Thank you for taking the time to report this bug report. Unfortunately, that stack trace is not very useful in determining the cause of the crash, because there are no debugging symbols loaded (probably abrt failed to load them).\n\nUnfortunately, we cannot use this backtrace.\n\nClosing as INSUFFICIENT_DATA.",
@@ -241,137 +339,5 @@
"regexp": "INTEL,865PE",
"addr": "AGP8x"
}
- ],
- "topRow": [
- {
- "idx": "addgetlogstext",
- "msg": "X logs",
- "string": "getLogsString",
- "state": "NEEDINFO",
- "parameter": "",
- "submit": false
- },
- {
- "idx": "addgetffrepro",
- "msg": "Repro",
- "string": "getAbrtReproInfo",
- "state": "NEEDINFO",
- "parameter": "",
- "submit": false
- },
- {
- "idx": "addgetfirefoxinfo",
- "msg": "GeckInf",
- "string": "getFirefoxBacktraceString",
- "state": "NEEDINFO",
- "parameter": "",
- "submit": false
- },
- {
- "idx": "webfailure",
- "msg": "website",
- "string": "websiteFailure",
- "state": "CLOSED",
- "parameter": "NOTABUG",
- "submit": false
- },
- {
- "idx": "addnoresponse",
- "msg": "NoRespns",
- "string": "noResponseString",
- "state": "CLOSED",
- "parameter": "INSUFFICIENT_DATA",
- "submit": false
- },
- {
- "idx": "addcloseupstream",
- "msg": "CloseUP",
- "string": "",
- "state": "CLOSED",
- "parameter": "UPSTREAM",
- "submit": false
- },
- {
- "idx": "moveyourbutt",
- "msg": "InfRemind",
- "string": "moveYourButString",
- "state": "NEEDINFO",
- "parameter": "",
- "submit": false
- },
- {
- "idx": "crashInFlash",
- "msg": "flashCrash",
- "string": "flashCrashString",
- "state": "CLOSED",
- "parameter": "CANTFIX",
- "submit": false
- }
- ],
- "bottomRow": [
- {
- "idx": "needinforbtn",
- "msg": "NEEDINFO",
- "string": "",
- "state": "NEEDINFO",
- "parameter": "",
- "submit": false
- },
- {
- "idx": "closenvidia",
- "msg": "nVidia",
- "string": "cantfixNvidiaString",
- "state": "CLOSED",
- "parameter": "CANTFIX",
- "submit": false
- },
- {
- "idx": "closeoldrhel",
- "msg": "old",
- "string": "obsoleteRHELString",
- "state": "CLOSED",
- "parameter": "WONTFIX",
- "submit": false
- },
- {
- "idx": "notriagebtn",
- "msg": "noTriage",
- "string": "noTriageString",
- "state": "ASSIGNED",
- "parameter": "ADDSELFCC",
- "submit": false
- },
- {
- "idx": "nodebugsymbols",
- "msg": "noDbg",
- "string": "noDebugSymbols",
- "state": "CLOSED",
- "parameter": "INSUFFICIENT_DATA",
- "submit": false
- },
- {
- "idx": "issuetrackerbtn",
- "msg": "RHEL",
- "string": "RHELString",
- "state": "NEEDINFO",
- "parameter": "",
- "submit": false
- },
- {
- "idx": "xloglivecdbtn",
- "msg": "InstFail",
- "string": "getLogsLiveCDString",
- "state": "NEEDINFO",
- "parameter": "",
- "submit": false
- },
- {
- "idx": "closeOnRetest",
- "msg": "Retest",
- "string": "thankLettingUsKnow",
- "state": "CLOSED",
- "parameter": "SOMERELEASE",
- "submit": false
- }
]
}
diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js
index edfadb6..b1b4700 100644
--- a/bugzillaBugTriage.js
+++ b/bugzillaBugTriage.js
@@ -720,6 +720,13 @@ BZPage.prototype.onCommentsDropdownChange = function() {
// TODO make these getters/setters on the bz object instead
console.log("0" + this.doc.getElementById("bug_status"));
+
+ // we need to add element.id to the comment object
+ commentObj.forEach(function (comment,commIdx,commArr) {
+ this.selectOption(getID,comment.status);
+ });
+
+ // selectOption
if ("status" in commentObj) this.selectOption("bug_status", commentObj.status);
console.log("1");
if ("resolution" in commentObj) this.selectOption("resolution", commentObj.resolution);