]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1833080: have eg-bool recognize IDL bool string values
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 17 Jun 2019 14:46:14 +0000 (10:46 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 20 Jun 2019 17:47:58 +0000 (13:47 -0400)
commiteef6f0fa0f2dedb5aa08836558643ac4d09ed088
treea70f645f27293cdbd2540a33f99edf2a0591b9e9
parente4cd70354858d98c05d435fa9a273a07d06152e1
LP#1833080: have eg-bool recognize IDL bool string values

This patch updates eg-bool so that it can format both
true Boolean and IDL bool string values (i.e., 't' or 'f'). Prior
to this patch, IDL bool values would always be rendered as 'Yes'.

This patch relaxes the type restriction on the value setter
and getter; unfortunately, there's no way to overload the
setter or making it accept (say) boolean|string.A

This patch also supplies some unit sets.

To test
-------
[1] View an Angular grid that has Boolean fields. The Copy
    Status server admin page is a good one.
[2] Note that the boolean values are all rendered as "Yes".
[3] Apply the patch and repeat step 1. This time, false
    values should be displayed as "No".
[4] Verify that 'npm run test' for the Angular app passes.

Sponsored-by: PaILS
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/util/bool.component.spec.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/share/util/bool.component.ts