[Koha-bugs] [Bug 8309] New: Koha namespace organisation, first implementation
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jun 25 15:04:18 CEST 2012
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8309
Priority: P1 - high
Change sponsored?: ---
Bug ID: 8309
Assignee: paul.poulain at biblibre.com
Summary: Koha namespace organisation, first implementation
Severity: enhancement
Classification: Unclassified
OS: All
Reporter: paul.poulain at biblibre.com
Hardware: All
Status: ASSIGNED
Version: master
Component: Architecture, internals, and plumbing
Product: Koha
During KohaCon12 hackfest, some of us had a discussion about Koha namespace
organisation and content. The result was a wiki page:
http://wiki.koha-community.org/wiki/Koha_Namespace_RFC
I've investigated this organisation by writing some DBIx::Class & Moose
packages. The results are great, a lot of code can be removed, and the code is
safer. Note that the patches attached here are just a first draft, not
requesting sign-off, just comments !
My feedback of this first try:
* defining the schema has been easy, thanks to DBIx::Class documentation.
Error messages are very clear and easy to understand for a newbie like me !
* investigating a little bit more, there are many tools/tricks that will make
us save a lot of time/lines. Like caching (with DBIx::Class::Cursor::Cached),
paging (see
http://search.cpan.org/~arodland/DBIx-Class-0.08196/lib/DBIx/Class/Manual/Cookbook.pod#Paged_results,
not used in this 1st POC), doing JOIN or finding relations between datas, or
returning array of hashrefs (DBIx::Class::ResultClass::HashRefInflator)
* cleaning categories.pl resulted in a code that is *much* smaller and
readable than the previous one (something like 100 lines removed)
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list