acquisitions general search can try to retrieve all copies in the database

Bug #1269042 reported by Galen Charlton on 2014-01-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Status tracked in Master
2.4
Low
Unassigned
2.5
Low
Unassigned
Master
Low
Unassigned

Bug Description

When using the acquisitions general search form, setting a search field to "LID - Evergreen Copy ID" will cause the form to try to create a drop-down widget containing the ID of every copy in the database. Except for very small databases, this will not work, as it will take forever and will cause a PCRUD backend to consume a large amount of memory on the server.

Expected behavior: the appropriate widget for a copy ID search is an ordinary text input. An argument could be made that acqlid.eg_copy_id shouldn't even be an option at all, as it would be of dubious use for normal staff.

Evergreen master

Galen Charlton (gmc) on 2014-01-14
tags: added: acquisitions
Galen Charlton (gmc) wrote :

A patch is available in the user/gmcharlt/lp1269042_avoid_making_acp_id_dropdown branch of the working/Evergreen repository:

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/gmcharlt/lp1269042_avoid_making_acp_id_dropdown

tags: added: pullrequest
Mike Rylander (mrylander) wrote :

FUN TIMES! I like it. Pushing to the appropriate branches now.

Mike Rylander (mrylander) wrote :

Done and done.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers