]> git.evergreen-ils.org Git - 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:54:32 +0000 (13:54 -0400)
commit45fb062fbd59ec2ef6c124dd5841040c3291dc2f
tree79d0a29ef98b2d70d43e234545068401b66890be
parentbcb5523aac31c85f54eb3a812dbe1d9a45b7ebb5
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