Closed Bug 298931 Opened 19 years ago Closed 19 years ago

migrate Group.pm from a simple module to a class

Categories

(Bugzilla :: Administration, task)

2.19.3
task
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.22

People

(Reporter: timello, Assigned: timello)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 2 obsolete files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050524 Firefox/1.0 (Ubuntu package 1.0.2 MFSA2005-44) Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050524 Firefox/1.0 (Ubuntu package 1.0.2 MFSA2005-44) There is only one routine at the Group.pm. We could upgrade Group.pm to a class instead of a simple module, following the bug 294160 class proposal. Reproducible: Always Steps to Reproduce:
Attached patch v1: adding class definitions and pod docs. (obsolete) (deleted) — Splinter Review
Attachment #187425 - Flags: review?(LpSolit)
Blocks: 240086
Yep, I agree. I thought I had already filed a bug for this, but I guess not.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → Bugzilla 2.22
Version: unspecified → 2.19.3
Assignee: administration → timello
Status: NEW → ASSIGNED
Comment on attachment 187425 [details] [diff] [review] v1: adding class definitions and pod docs. > # The Original Code is the Bugzilla Bug Tracking System. > # >-# The Initial Developer of the Original Code is Netscape Communications >-# Corporation. Portions created by Netscape are >-# Copyright (C) 1998 Netscape Communications Corporation. All >-# Rights Reserved. >-# > # Contributor(s): Joel Peshkin <bugreport@peshkin.net> > # Erik Stambaugh <erik@dasbistro.com> >+# Tiago R. Mello <timello@async.com.br> Not sure you are allowed to remove the reference to Netscape Corp. You should ask justdave. >-use Bugzilla::Config; >+use Bugzilla; >+use Bugzilla::Util; >+use Bugzilla::Error; I think you still need Bugzilla::Config, as it provides Param(). >+=head1 NAME >+ >+Bugzilla::Group - Object for a Bugzilla groups. s/groups/group/ >+ my $user_reg_exp = $group->user_reg_exp; Nit: I prefer regexp than reg_exp mkanat, could you review this patch too? Maybe I missed something.
Attachment #187425 - Flags: review?(mkanat)
Attachment #187425 - Flags: review?(LpSolit)
Attachment #187425 - Flags: review-
Attached patch v2: some fixes. (obsolete) (deleted) — Splinter Review
Attachment #187425 - Attachment is obsolete: true
Attachment #187655 - Flags: review?(mkanat)
Attachment #187655 - Flags: review?(kiko)
Attached patch v3: missing Bugzilla::Config (deleted) — Splinter Review
Attachment #187655 - Attachment is obsolete: true
Attachment #187665 - Flags: review?(LpSolit)
Attachment #187655 - Flags: review?(mkanat)
Attachment #187655 - Flags: review?(kiko)
Attachment #187425 - Flags: review?(mkanat)
Comment on attachment 187665 [details] [diff] [review] v3: missing Bugzilla::Config r=LpSolit
Attachment #187665 - Flags: review?(LpSolit)
Attachment #187665 - Flags: review?
Attachment #187665 - Flags: review+
Attachment #187665 - Flags: review? → review?(mkanat)
Attachment #187665 - Flags: review?(mkanat) → review+
Flags: approval?
Blocks: 294160
Blocks: bz-majorarch
Flags: approval? → approval+
Checking in Bugzilla/Group.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Group.pm,v <-- Group.pm new revision: 1.2; previous revision: 1.1 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: