DescriptionHonor the options type when exporting bundles.
Improve the way booleans, int and float
service options are exported in the bundle.
Also fix a bug with boolean options and
checkboxes in the inspector:
- set an option to true and save;
- restore an option to false and save;
- the option label says "false" but
the checkbox is switched back to true.
We might need to improve the way boolean options
are normalized before they are stored in the db.
They can be booleans or strings, I guess based
on the code path that executes the
service.set('config') call. Added an XXX comment.
QA:
- try what described above in the inspector;
- set/unset/restore to default options,
including booleans, integers/floats and
strings; export the bundle; ensure it works.
https://code.launchpad.net/~frankban/juju-gui/export-types/+merge/193464
(do not edit description out of merge proposal)
Patch Set 1 #
MessagesTotal messages: 4
|