LP#1768947 Offline DB runs in shared web worker
authorBill Erickson <berickxx@gmail.com>
Fri, 8 Jun 2018 17:08:18 +0000 (13:08 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 8 Aug 2018 15:01:15 +0000 (11:01 -0400)
commit80a47ec6fe8ef0ba20544626dbcbfecf1437e45f
tree553c3c9d92b0d87e57fe7ab5b111d41882d9ce98
parentc8be83707d8a7a15d95095dd645bda158a2fc15e
LP#1768947 Offline DB runs in shared web worker

Move the lovefield database access logic into a shared web worker
script.  This ensures the only one connection (per schema) can exist,
avoiding data integrity problems caused by having multiple tabs writing
to the database at the same time.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/offline-db-worker.js [new file with mode: 0644]
Open-ILS/web/js/ui/default/staff/offline.js
Open-ILS/web/js/ui/default/staff/services/lovefield.js