DescriptionFix settings emptied out on save.
Only the new values were stored in the database
by the set_config callback.
Also fixed a confusing object passing (using Y.bind)
in inspector.js: at the moment newVals was defined
it included all the configs. A side effect of env.set_config
mutated the object so that the callback received just the
new values. Now env.set_config no longer mutates its params.
QA
- bootstrap, deploy cs:~juju-gui/precise/juju-gui
and expose the GUI;
- switch the GUI to this branch:
juju set juju-gui \
juju-gui-source=lp:~frankban/juju-gui/inspector-settings-emptied-out
and wait 10 minutes for the change to be applied;
- deploy another service (e.g. haproxy);
- change the settings on haproxy and click save;
- all the other options should no longer be emptied
out. The changed options should display their new
value, even after refreshing the page.
https://code.launchpad.net/~frankban/juju-gui/inspector-settings-emptied-out/+merge/188018
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 8
Patch Set 2 : Fix settings emptied out on save. #
MessagesTotal messages: 4
|