Closed Bug 578513 Opened 14 years ago Closed 14 years ago

cc_accessible and reporter_accessible should be is_cc_accessible and is_reporter_accessible in the WebServices

Categories

(Bugzilla :: WebService, defect)

3.7.2
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.0

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file, 1 obsolete file)

For compatibility with Gerv's BzAPI, and just for consistency across all our booleans, every boolean that the WebServices API accepts or returns should start with "is_" unless it would be totally nonsensical for it to do so.
Flags: blocking4.0+
Attached patch v1 (obsolete) — Splinter Review
This should make all the relevant functions and documentation consistent.
Assignee: webservice → mkanat
Status: NEW → ASSIGNED
Attachment #480379 - Flags: review?(dkl)
Comment on attachment 480379 [details] [diff] [review]
v1

>=== modified file 'Bugzilla/WebService/Bug.pm'

>-=item C<reporter_accessible>
>+=item C<is_creator_accessible>

IMO, this change is pretty weird. We never talk about bug *creator* anywhere in Bugzilla. We clearly use the "reporter" label everywhere else. This is non-sense to me.
Attachment #480379 - Flags: review-
Also, a bug creator can be seen as the one who breaks the code. The bug reporter is the one who finds the bug and report it to Bugzilla.
Comment on attachment 480379 [details] [diff] [review]
v1

Hum, I see that you use 'creator' in Bug.get() to get the reporter, so I will remove my r-. But this is IMO a bad choice.
Attachment #480379 - Flags: review-
LpSolit: See bug 574995 for the reasoning on "creator".
Attachment #480379 - Flags: review?(timello)
Comment on attachment 480379 [details] [diff] [review]
v1

I'd go with the consistency here. If we are currently using 'creator', then 'creator' should be the choice.
Attachment #480379 - Flags: review?(timello) → review+
Flags: approval4.0+
Flags: approval+
Attachment #480379 - Flags: review?(dkl)
Attached patch v2Splinter Review
There was minor bitrot on checkin, this is what got checked in.
Attachment #480379 - Attachment is obsolete: true
Attachment #485435 - Flags: review+
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/                       
modified Bugzilla/Bug.pm
modified Bugzilla/WebService/Bug.pm
Committed revision 7562.

Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/4.0/                         
modified Bugzilla/Bug.pm
modified Bugzilla/WebService/Bug.pm
Committed revision 7451.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Blocks: 1001846
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: