LP#1641708 Work log avoid storing unneeded data
authorBill Erickson <berickxx@gmail.com>
Mon, 14 Nov 2016 19:36:59 +0000 (14:36 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 5 Apr 2017 22:21:29 +0000 (18:21 -0400)
commit8c2ccee61ea815839f65a29bcad64c2738741f3e
tree8c208e34fe00f6ce71a0f2cb96c33acfa4ab6ed4
parent33e365b198c8870aaa9e06ee672fb337c00f8b99
LP#1641708 Work log avoid storing unneeded data

Avoid storing full transaction data with each work log entry.  Only
store data need for work log display and actions.

Includes the addition of a new field (entry.hold_id) for hold requests
so that the value does not have live in the large data blob.

To test:

1. Peform checkouts, holds placements,  and other log-tracked actions
   in the client.
2. Open Administration -> Workstation -> Stored Preferences and see
   values for key "eg.patron_log".  Values added after the patch will only
   contain ~8 keys with string values, no large nested objects.
3. Open Administration -> Local Administration -> Work Log and confirm
   recent log-tracked actions are all represented in the grid.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/web/js/ui/default/staff/admin/workstation/log.js
Open-ILS/web/js/ui/default/staff/services/ui.js