[Koha-bugs] [Bug 24225] New: Add Koha::Objects->search_from_api method

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 11 21:03:52 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24225

            Bug ID: 24225
           Summary: Add Koha::Objects->search_from_api method
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: tomascohen at gmail.com
        QA Contact: testopia at bugs.koha-community.org

Bug 23843 introduced the Koha::Object(s)->to_api method and the attribute
mappings on the Koha::Object classes. Bug 23893 will introduce the reverse
mapping along with the Koha::Object->new_from_api and
Koha::Object->set_from_api methods.

So all the pieces are set so we can properly build a
Koha::Objects->search_from_api method that does something similar to the
objects.search helper, but uses the classes' mappings instead of requiring the
to_api and to_model methods to be passed.

This will ultimately help clean all the controllers and (hopefully) improve
productivity re: adding endpoints, because of the removal of that intrinsic
complexity both on controllers, and tests.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list