From 1dce63de5a30aa7bd6ce2cbf3169476698f6ef16 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 26 Apr 2010 12:18:08 +0200 Subject: Two attempts to make it at least a little bit compliant with Eclipse/WTP --- bugzilla-comments.json | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++ bugzillaComments.js | 8 +++--- 2 files changed, 82 insertions(+), 4 deletions(-) create mode 100644 bugzilla-comments.json 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 \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 = { " " + "