Closed Bug 942599 Opened 11 years ago Closed 11 years ago

Documentation about possible_duplicates() lists 'products' as argument instead of 'product'

Categories

(Bugzilla :: WebService, defect)

4.2.3
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.0

People

(Reporter: programming, Assigned: LpSolit)

References

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0 (Beta/Release) Build ID: 20131115105702 Steps to reproduce: I want to get possible duplicates for a bug. As the instance has many different products I want to restrict it to 1 of the products. So to the XML-RPC interface I sepcify a summary, an array with 1 product and a array with some fields I want to include. As that are the possible parameters summary, products and include_fields Actual results: I get results from multiple products. Expected results: Only bugs of the product I specified
(In reply to Rob Snelders from comment #0) > parameters summary, products and include_fields It must be 'product' singular, not plural. The documentation is wrong. As this method accepts a list of products, I agree it would make more sense to have it plural, but that's how it has been implemented, see bug 22353.
Status: UNCONFIRMED → NEW
Depends on: 880653
Ever confirmed: true
Summary: possible_duplicates ignores the products-parameter → Documentation about possible_duplicates() lists 'products' as argument instead of 'product'
Target Milestone: --- → Bugzilla 4.0
glob: what's the rationale to spell 'product' singular for a parameter which takes a *list* of products? (you reviewed bug 22353) As the method is marked UNSTABLE, shouldn't we fix that and mark 'product' (singular) as deprecated in 4.x, and use 'products' instead for 5.0?
Flags: blocking4.4.2+
(In reply to Frédéric Buclin from comment #2) > As the method is marked UNSTABLE, shouldn't we fix that and mark 'product' > (singular) as deprecated in 4.x, and use 'products' instead for 5.0? that sounds perfectly reasonable to me :)
Assignee: webservice → LpSolit
Status: NEW → ASSIGNED
Attachment #8341137 - Flags: review?(glob)
Comment on attachment 8341137 [details] [diff] [review] patch for trunk, v1 r=glob
Attachment #8341137 - Flags: review?(glob) → review+
Flags: approval+
Target Milestone: Bugzilla 4.0 → Bugzilla 5.0
Attached patch patch for 4.xSplinter Review
Fix the POD for 4.x.
Attachment #8341164 - Flags: review?(glob)
Target Milestone: Bugzilla 5.0 → Bugzilla 4.0
Attachment #8341164 - Flags: review?(glob) → review?(dkl)
Attachment #8341164 - Flags: review?(dkl) → review+
Flags: approval4.4?
Flags: approval4.2?
Flags: approval4.0?
Flags: approval4.4?
Flags: approval4.4+
Flags: approval4.2?
Flags: approval4.2-
Flags: approval4.0?
Flags: approval4.0-
Target Milestone: Bugzilla 4.0 → Bugzilla 4.4
It's not just a typo somewhere in the text. We are saying to developers to pass 'products' when it's really 'product'. That's exactly what this bug is about: someone passed 'products' and wondered why this param has been ignored.
Flags: approval4.2?
Flags: approval4.2-
Flags: approval4.0?
Flags: approval4.0-
Target Milestone: Bugzilla 4.4 → Bugzilla 4.0
Flags: approval4.2?
Flags: approval4.2+
Flags: approval4.0?
Flags: approval4.0+
Honestly I'm shocked to see LpSolit fighting for this one as he was usually the one to deny such requests in the past ;) But yes, I agree here, this is a correctness in documentation thing, and since our website docs are built from the POD in the library files, this is where we have to change it to fix the website.
(In reply to Dave Miller [:justdave] (justdave@bugzilla.org) from comment #8) > Honestly I'm shocked to see LpSolit fighting for this one as he was usually > the one to deny such requests in the past ;) I never denied approval for documentation stuff.
(In reply to Frédéric Buclin from comment #9) > I never denied approval for documentation stuff. Maybe my memory sucks then. Apologies if so. I remember someone being stubborn about touching code files for any reason on security-only branches.
We will have to relnote in 5.0 that the list of parameters changed: product -> products. Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/ modified Bugzilla/WebService/Bug.pm Committed revision 8825. Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/4.4/ modified Bugzilla/WebService/Bug.pm Committed revision 8640. Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/4.2/ modified Bugzilla/WebService/Bug.pm Committed revision 8241. Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/4.0/ modified Bugzilla/WebService/Bug.pm Committed revision 7764.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Keywords: relnote
Resolution: --- → FIXED
Added to relnotes for 5.0rc1.
Keywords: relnote
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: