Closed Bug 283231 Opened 20 years ago Closed 20 years ago

POD for Bugzilla::FlagType

Categories

(Bugzilla :: Documentation, enhancement)

2.19.2
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: kbenton, Assigned: kbenton)

Details

Attachments

(1 file, 3 obsolete files)

POD for Bugzilla::FlagType
OS: Windows XP → All
Hardware: PC → All
Attached patch POD for Bugzilla::FlagType (obsolete) — Splinter Review
Attachment #175222 - Flags: review?(documentation)
Comment on attachment 175222 [details] [diff] [review]
POD for Bugzilla::FlagType

Sorry guys - wrong file.
Attachment #175222 - Attachment is obsolete: true
Attachment #175222 - Flags: review?(documentation)
Attached patch POD for Bugzilla::FlagType (obsolete) — Splinter Review
Attachment #175226 - Flags: review?(documentation)
Comment on attachment 175222 [details] [diff] [review]
POD for Bugzilla::FlagType

>+FlagType.pm provides an interface to flag types as stored in Bugzilla.

  Bugzilla::FlagType.

>+=item *
>+
>+Prior to calling routines in this module, it's assumed that you have
>+already done a C<require CGI.pl>.

  This eventually will change in a future version, when CGI.pl is removed. You
might want to note that.

>+=item *
>+
>+Use of private functions/variables outside this module may lead to
>+unexpected results after an upgrade.  Please avoid using private
>+functions in other files/modules.

  Explain that private functions are ones that start with _ or are specifically
noted as being private, so that people who aren't core BZ devs but want to make
modifications know about that.

>+=back
>+
>+=head1 LICENSE

  I'd prefer that the license exist only in one place, and that place be at the
top of the file, in normal code comments.

  It looks like there aren't any actual subroutine docs in here... are they
going to be added later?
Attachment #175222 - Attachment is obsolete: false
Attachment #175222 - Flags: review-
Comment on attachment 175226 [details] [diff] [review]
POD for Bugzilla::FlagType


  Ahh, that's a bit better. :-) My comments from above still stand, in addition
to any comments here:

>-# basic sets of columns and tables for getting flag types from the database
>+=head1 PRIVATE VARIABLES/CONSTANTS

  This should be surrounded by a =begin undocumented and =end undocumented. The
private stuff should not be exposed in public POD.

>+use constant @base_columns = 

  You can't change things to use constant without actual code modification
elsewhere. This won't work. Just leave it as it is now, and we'll change that
in another patch.


  OK, I'm just going to comment on the POD generally:

  (1) I'm thrilled to have this. Any POD is better than no POD. :-)
  (2) The Bugzilla::DB POD docs have good style for the subroutine
documentation, with the "Description, Params, Returns" sections -- let's follow
that for all the POD that we can. If you don't want to do that, I'll totally
understand, but if you can do it it would help out a lot. :-)
  (3) We need a SYNOPSIS section that shows how to use all the functions.

  Also, the *best* POD that I've seen also has the little "example" sections at
the top of each subroutine POD (see the DBI docs). That's not totally
necessary, but if you want to do it, it would be awesome. :-)
Attachment #175226 - Flags: review?(documentation) → review-
Attached patch Changes as requested by Max (obsolete) — Splinter Review
Assignee: documentation → kevin.benton
Status: NEW → ASSIGNED
Attachment #175357 - Flags: review?(documentation)
Comment on attachment 175357 [details] [diff] [review]
Changes as requested by Max

Looks good to me. My comments from the Flag review also apply.

Oh, and did you leave the CONTRIBUTORS section in there on purpose?
Attachment #175357 - Flags: review?(documentation) → review+
Severity: normal → enhancement
Flags: approval?
Target Milestone: --- → Bugzilla 2.20
Version: 2.19.1 → 2.19.2
Flags: approval? → approval+
Attachment #175222 - Attachment is obsolete: true
Attachment #175226 - Attachment is obsolete: true
Hey Kevin -- there's a bit of bitrot that I don't feel comfortable fixing on
checkin. Could you post a new patch?
Re-applied same patch against updated code.
Attachment #175357 - Attachment is obsolete: true
Attachment #177507 - Flags: review?
Attachment #177507 - Flags: review? → review?(documentation)
Attachment #177507 - Flags: review?(documentation) → review?(mkanat)
Comment on attachment 177507 [details] [diff] [review]
Updates to fix bitrot

bootyful
Attachment #177507 - Flags: review?(mkanat) → review+
Checking in Bugzilla/FlagType.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/FlagType.pm,v  <--  FlagType.pm
new revision: 1.12; previous revision: 1.11
done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: