LP#1641708 Work log avoid storing unneeded data
authorBill Erickson <berickxx@gmail.com>
Mon, 14 Nov 2016 19:36:59 +0000 (14:36 -0500)
committerKathy Lussier <klussier@masslnc.org>
Wed, 19 Apr 2017 02:27:40 +0000 (22:27 -0400)
commitd4803ddd7bcb28367d8c5422a2bf937062c00388
treec51161eab8ee7a2dd43a11bcb61082fe045cff4a
parent3e4528d11176b15a4ef95651369d043c61a39548
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>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/admin/workstation/log.js
Open-ILS/web/js/ui/default/staff/services/ui.js