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)
committerKathy Lussier <klussier@masslnc.org>
Wed, 8 Aug 2018 14:31:15 +0000 (10:31 -0400)
commit071a5492e33bda4e51abe43ff3fe2f327c402153
tree0ff0c5eea031a5485050a9f9d49775cdafbac465
parentbeee20c5b0a63bf8248a630686f2fb262d4789ac
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/src/templates/staff/base_js.tt2
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
Open-ILS/web/js/ui/default/staff/webpack.config.js