Moving To Catalyst, Incrementally?

Aaron Trevena aaron.trevena at gmail.com
Wed May 27 15:08:33 UTC 2009


2009/4/28 Max Kanat-Alexander <mkanat at bugzilla.org>:
>    Hey Mark. We won't be re-writing the whole thing. That's what
> "incrementally" means--not re-writing the whole thing.

A good starting point would be to move the db layer to DBIx::Class and
custom queries to SQL::Abstract.

As I said last time I posted to this list, doing so would gain you
considerably more maintainable queries, and pagination almost for
free.

You won't get dbix-class totally for free with catalyst, it's helpers
will create data class files, but I'm pretty sure that the bugzilla
schema doesn't fit nicely into any ORM generated code without manually
specifying some relationships. etc - however that should be very
simple.

I may be remembering wrong, but I don't remember seeing any unit tests
in bugzilla last time I looked, if you're going to be doing any
refactoring like this they're essential.

Cheers,

A.

-- 
http://www.aarontrevena.co.uk
LAMP System Integration, Development and Hosting



More information about the developers mailing list