aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-05-13 13:33:14 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:53:47 +0200
commit67ea76ace031bf5639f33bea8f5359deecc32063 (patch)
tree548b4bb45c15f87a0cf3a4b7266b9d1cd1044668
parent216ccdca63a69b99e2b0bc282c4e250fb76c3cd3 (diff)
downloadbugzilla-triage-67ea76ace031bf5639f33bea8f5359deecc32063.tar.gz
Warn against multiple items in some {XML,JSON}RPC calls.
Fix #84.
-rw-r--r--data/lib/addAttachmentRow.js2
-rw-r--r--data/tweaks/bug-page-mod.js30
2 files changed, 31 insertions, 1 deletions
diff --git a/data/lib/addAttachmentRow.js b/data/lib/addAttachmentRow.js
index 16eb02c..63babcd 100644
--- a/data/lib/addAttachmentRow.js
+++ b/data/lib/addAttachmentRow.js
@@ -52,7 +52,7 @@ function addAttachment(data, callback, param) {
nomail : true
};
- self.postMessage(new Message("MakeJSONRPCCall", {
+ self.postMessage(new Message("MakeJSONRPCall", {
url : constantData.XMLRPCData[window.location.hostname].url
.replace("xmlrpc.cgi", "jsonrpc.cgi"),
method : "bugzilla.addAttachment",
diff --git a/data/tweaks/bug-page-mod.js b/data/tweaks/bug-page-mod.js
index 0e3d431..d0f8095 100644
--- a/data/tweaks/bug-page-mod.js
+++ b/data/tweaks/bug-page-mod.js
@@ -63,6 +63,36 @@ function TweakOnMessageHandler(msg, nextHandler) {
function collectHistory(rpcURL) {
// https://bugzilla.redhat.com/docs/en/html/api/Bugzilla\
// /WebService/Bug.html#Bug_Information
+ /*
+ This is a heads up on a change that we will be making soon with Bugzilla. The
+ component, version and target release fields will become multi-select fields.
+ This means a bug will have one or more values for these fields (currently they
+ can only have one value for each field).
+ If you use the RPC scripts, this change will affect the results you send and
+ receive to it. For example, in the Bug.get function, the XML for the
+ target_release field currently is:
+ {{{
+ <member>
+ <name>target_release</name>
+ <value><string>release_1</string></value>
+ </member>
+ }}}
+ the new XML will read:
+ {{{
+ <member><name>target_release</name>
+ <value><array><data>
+ <value><string>release_1</string></value>
+ <value><string>release_1</string></value>
+ </data></array></value>
+ </member>
+ }}}
+ We plan to release this change on our test server -
+ https://partner-bugzilla.redhat.com/ - this Wednesday April 20th EDT. An
+ announcement will be sent to bugzilla-announce-list redhat com when we make
+ the change.
+ The change will be made to the production servers in early May, with
+ notification to the announce list prior to the change.
+ */
var bugId = getBugNo();
self.postMessage(new Message("MakeJSONRPCall", {
url : rpcURL.replace("xmlrpc.cgi","jsonrpc.cgi"),