1
0
Fork 0
Data collection, validation, and processing framework for JavaScript [archive]
 
 
 
 
 
 
Go to file
Mike Gerwitz ecdfea5cdb ProgramInit: Do not initialize bucket values for undefined question types
These denote fields that are generated but do not actually have any data
associated with them.  For example, select options with predicates have a
field generated so that they contribute to the group field count (so that
the group will automatically show/hide appropriately), but those should
never have values associated with them in the bucket.

This was manifesting as a nasty bug:  The bucket contained a key for
generated options.  When the quote is loaded, the client "empties" the
bucket.  In doing so, it set the option value to the empty string, which had
the effect of rendering the dropdown useless---every value was the empty
string!

* src/program/ProgramInit.js (_isKnownType): New method.
  (init): Use it and ignore fields with unknown types.
* src/server/Server.js: Add note that we shouldn't have this logic
  duplicated between ProgramInit and ProgramQuoteCleaner.
* src/server/quote/ProgramQuoteCleaner.js (_fixGroup): Ignore fields with
    unknown types.
  (_isKnownType): New method.
* test/program/ProgramInitTest.js: Update existing tests.  Add new.
* test/server/quote/ProgramQuoteCleanerTest.js: Test this case.
2018-11-14 11:52:52 -05:00
bin bin/server.in: exec 2017-10-06 11:18:56 -04:00
build-aux Force tags for the version 2018-08-20 17:07:59 -04:00
conf Integrate noResultsUrl configuration 2018-05-01 09:44:55 -04:00
doc doc: Source files and developer resources 2018-05-04 10:57:56 -04:00
src ProgramInit: Do not initialize bucket values for undefined question types 2018-11-14 11:52:52 -05:00
test ProgramInit: Do not initialize bucket values for undefined question types 2018-11-14 11:52:52 -05:00
tools LoVullo Associates => R-T Specialty 2017-06-08 14:48:43 -04:00
.gitignore Add bin/server to invoke server using configure'd node 2017-08-29 14:56:13 -04:00
.gitlab-ci.yml Only publish GitLab pages for tags 2017-08-23 14:29:51 -04:00
COPYING Placeholder README.md and license 2014-01-16 11:44:02 -05:00
COPYING.AGPL Near-complete liberation of liza 2017-06-08 14:38:28 -04:00
HACKING HACKING: Add reference to 'Hacking Liza' section of manual 2018-05-04 10:39:46 -04:00
Makefile.am Add missing bin/server.js to distribution 2017-09-01 16:11:22 -04:00
README.md README.hacking=>HACKING with README.md mention 2018-04-19 21:45:15 -04:00
autogen.sh LoVullo Associates => R-T Specialty 2017-06-08 14:48:43 -04:00
configure.ac Add information for invoking `make' 2017-09-06 14:18:02 -04:00
index.js LoVullo Associates => R-T Specialty 2017-06-08 14:48:43 -04:00
npm-shrinkwrap.json npm-shrinkwrap.json: Update 2018-08-15 10:33:18 -04:00
package.json.in Update package.json license to {=>A}GPLv3+ 2017-09-08 14:23:34 -04:00

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
  $ 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.