27d570578d
The quicksave feature was added back in 2011 when the framework was somewhat unstable---we were taking calls from users and it wasn't a pleasent experience to tell them that they had to refresh the page to work around some issue with bad state, and lose all unsaved data. This feature is now more trouble than it's worth, since it causes a number of bugs and can even cause data corruption. If this is reintroduced in the future, I'd prefer it be done by periodically saving quote state after every or a few bucket modifications, to permit Meteor-like features. This keeps the feature available on the client as a heartbeat for quote locking; this can be removed in the future when we handle distributed locking. * src/client/Client.js (_changeQuote): Stop setting quicksave data from request. (_mergeQuickSaveData): Remove now-unused method. (_createUi): Stop merging quicksave data on render. (saveStaging): Add note that this method is now only used as a heartbeat. * src/client/quote/ClientQuote.js (saveStaging): Add comment indicating that this is now used for a heartbeat. (setQuickSaveData, getQuickSaveData): Remove methods. * src/quote/BaseQuote.js (_quickSaveData): Remove field. (setQuickSaveData, getQuickSaveData): Remove methods. * src/server/Server.js (initQuote): Do not create or initialize quicksave data. (handleQuickSave): Remove method. * src/server/daemon/controller.js (doRoute): Return empty reply without processing quicksave data. Continue touching session to retain quote lock. * src/server/db/MongoServerDao.js (saveQuote): Do not clear quicksave. (quickSaveQuote): Remove method. |
||
---|---|---|
bin | ||
build-aux | ||
conf | ||
doc | ||
src | ||
test | ||
tools | ||
.gitignore | ||
.gitlab-ci.yml | ||
COPYING | ||
COPYING.AGPL | ||
HACKING | ||
Makefile.am | ||
README.md | ||
autogen.sh | ||
configure.ac | ||
index.js | ||
npm-shrinkwrap.json | ||
package.json.in |
README.md
Liza Data Collection Framework
Liza is a data collection, validation, and processing framework for JavaScript.
About
The Liza Data Collection Framework—"Liza" for short—is an effort to clean up, formalize, and expand upon a framework that was developed at RT Specialty / LoVullo for collecting, validating, and processing large amounts of user input for insurance quoting.
Configuring
If your distribution does not contain a `configure' file in the project root, then you likely have the sources as committed to the project repository; you may generate the script by issuing the following command:
$ ./autogen.sh
You may then see ./configure --help
for more information.
Building
If configure
is not available, see the section "Configuring" above.
$ ./configure # see --help for optional arguments
$ make # build
$ npm install # install js dependencies
$ make check # run test cases
Documentation
Compiled documentation for the latest release is available via our GitLab mirror, which uses the same build pipeline as we do on our internal GitLab instance. Available formats are:
Hacking
For more information on hacking Liza and publishing to npm, see
HACKING
.
License
Liza is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
The liza server is licensed differently: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
The full licenses are available in COPYING
and COPYING.AGPL
.