Closed Bug 922549 Opened 12 years ago Closed 9 years ago

Bugzilla::Migrate.pm should provide hook in load function

Categories

(Bugzilla :: Bug Import/Export & Moving, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 6.0

People

(Reporter: aliustek, Assigned: aliustek)

Details

Attachments

(1 file)

Bugzilla::Migrate.pm should provide hook in load function to provide a way for extensions to provide custom import modules
Assignee: import-export → aliustek
Attachment #812571 - Flags: review?(dkl)
Comment on attachment 812571 [details] [diff] [review] Migrate_Modules_hook.patch Review of attachment 812571 [details] [diff] [review]: ----------------------------------------------------------------- Hi aliustek, So sorry for the delay in doing this review. This seems like a great idea, and the patch is well coded. There are a couple of things to fix on checkin, but r=gerv. Gerv ::: Bugzilla/Hook.pm @@ +1042,5 @@ > +This hashref contains the path and prefix for the modules to be used. > + > +=over > + > +=item C<path> - Path to where the modules are kept, on a typical extension this Change comma to semicolon ::: extensions/Example/Extension.pm @@ +602,5 @@ > > +sub migrate_modules { > + my ($self, $args) = @_; > + $args->{path} = bz_locations->{'extensionsdir'} . "/Example/lib/Migrate"; > + $args->{prefix} = "Bugzilla::Extension::Example:Migrate"; Surely two colons here?
Attachment #812571 - Flags: review?(dkl) → review+
gerv, please commit.
Flags: needinfo?(gerv)
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git a0c3ade..933fe72 master -> master To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git 933fe72..513b445 master -> master Gerv
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: needinfo?(gerv)
Resolution: --- → FIXED
Severity: normal → enhancement
OS: Windows 7 → Unspecified
Hardware: x86_64 → Unspecified
Target Milestone: --- → Bugzilla 6.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: