aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-04-26 12:18:08 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-04-26 12:18:08 +0200
commit1dce63de5a30aa7bd6ce2cbf3169476698f6ef16 (patch)
tree605803643532f22cccc608bd9947410f8290b18e
parent80bc5b6aa6e6a093cd2c2a70a7cf0829afa13b27 (diff)
downloadbugzilla-triage-1dce63de5a30aa7bd6ce2cbf3169476698f6ef16.tar.gz
Two attempts to make it at least a little bit compliant with Eclipse/WTP
-rw-r--r--bugzilla-comments.json78
-rw-r--r--bugzillaComments.js8
2 files changed, 82 insertions, 4 deletions
diff --git a/bugzilla-comments.json b/bugzilla-comments.json
new file mode 100644
index 0000000..fdea010
--- /dev/null
+++ b/bugzilla-comments.json
@@ -0,0 +1,78 @@
+{
+ "commentPackages": {
+ "test": {
+ "test-all": {
+ "name": "Test lots of things",
+ "product": "Thunderbird",
+ "component": "Internal Components",
+ "priority": "P1",
+ "severity": "major",
+ "assignee": "mschroeder",
+ "qacontact": "foobar",
+ "url": "http://example.com",
+ "addDependsOn": "123",
+ "removeDependsOn": "456",
+ "addBlocks": "789",
+ "removeBlocks": "101112",
+ "addWhiteboard": ["a","b","c"],
+ "removeWhiteboard": ["a","b"],
+ "addKeyword": ["d", "e"],
+ "removeKeyword": "e",
+ "url": "http://example.com",
+ "status": "RESOLVED",
+ "resolution": "INCOMPLETE",
+ "version": "Lightning 0.3",
+ "os": "All",
+ "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"
+ },
+ "profile-location": {
+ "name": "Profile Location text and link",
+ "comment": "To locate your profile, see this page for more information: https://support.mozillamessaging.com/en-US/kb/Profiles"
+ },
+
+ "no-response": {
+ "name": "INCOMPLETE (No Response from Reporter)",
+ "comment": "No response for a while now, closing INCOMPLETE. Please reopen if you can reproduce or answer any unanswered questions.",
+ "status": "RESOLVED",
+ "resolution": "INCOMPLETE"
+ }
+ },
+ "thunderbird": {
+ },
+
+ "calendar": {
+ "console-log": {
+ "name": "Calendar Console Log",
+ "comment": "Please enable calendar.debug.log and calendar.debug.log.verbose in the advanced config editor (Options > Advanced > General > Config Editor) and check your error console for messages."
+ },
+ "prepare-checkin": {
+ "name": "prepare for checkin",
+ "target": "1.0b2",
+ "removeKeyword": "checkin-needed",
+ "status": "RESOLVED",
+ "resolution": "FIXED",
+ "comment": "Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/INSERT_REV_HERE>\n\n-> FIXED"
+ },
+ "what-version": {
+ "name": "Using what version?",
+ "value": "Please tell us what version you are using:\n\n* Thunderbird\n* Lightning\n* Provider for Google Calendar"
+ },
+ "retest-nightly": {
+ "name": "Restest with nightly",
+ "value": "Does this still happen with the latest 1.0b2pre nightlies?"
+ }
+ }
+ }
+}
diff --git a/bugzillaComments.js b/bugzillaComments.js
index 83b382d..6ae3e81 100644
--- a/bugzillaComments.js
+++ b/bugzillaComments.js
@@ -119,7 +119,7 @@ function BaseBugzilla(doc) {
BaseBugzilla.prototype = {
doc: null,
- get installedPackages() {
+ get: function installedPackages() {
// TODO does this really need to by dynamic?
let installedPackages = {};
if (gJSONData && ("commentPackages" in gJSONData)) {
@@ -142,7 +142,7 @@ BaseBugzilla.prototype = {
" <label for='comment_action'>Add Comment: </label>" +
" <select id='comment_action'>" +
" <option value=''>-- Select Comment from List --</option>" +
- "</div>", this.doc)
+ "</div>", this.doc);
$("#comments", this.doc).append(ca);
let select = $("#comment_action", this.doc);
@@ -158,7 +158,7 @@ BaseBugzilla.prototype = {
}
}
let self = this;
- select.change(function() { self.onCommentsDropdownChange() });
+ select.change(function() { self.onCommentsDropdownChange(); });
},
onCommentsDropdownChange: function onCommentsDropdownChange() {
@@ -325,7 +325,7 @@ RedhatBugzilla.prototype = {
////////////////////////////////////////////////////////////////
const bzMap = {
"https://bugzilla.mozilla.org/show_bug.cgi": MozillaBugzilla,
- "https://bugzilla.redhat.com/show_bug.cgi": RedhatBugzilla,
+ "https://bugzilla.redhat.com/show_bug.cgi": RedhatBugzilla
};
function figureOutBugzilla(doc) {