Reviewers: mp+192286_code.launchpad.net, Message: Please take a look. Description: Fix export and import bugs Our support for exporting and importing config values and expose flags was buggy. This fixes four discrete but related bugs. - Exporting config values would exclude those that had false-y default values. - We did not export the expose flag. - Importing config values did not work. - We called the expose flag "exposed", which is not what the actual delpoyer expects. To qa, open up the sandbox, deploy apache with "enable_modules" set to something or other, and expose it. Then export the environment. When you look at the service in the file, you should see "expose: true" and "enable_modules: mod_proxy" or whatever value you set. Then reload the GUI and drag the file into the sandbox. When the service has loaded, you should see that it is exposed, and when you look at the config in the inspector, you should see your value in the "enable_modules" field. https://code.launchpad.net/~gary/juju-gui/exportBugs/+merge/192286 (do not edit description out of merge proposal) Please review this at https://codereview.appspot.com/15400052/ Affected files (+76, -12 lines): A [revision details] M app/models/models.js M app/store/env/fakebackend.js M test/data/wp-deployer.yaml M test/test_fakebackend.js M test/test_model.js Index: [revision details] === added file '[revision details]' --- [revision details] 2012-01-01 00:00:00 +0000 +++ [revision details] 2012-01-01 00:00:00 +0000 @@ -0,0 +1,2 @@ +Old revision: