DescriptionAdd support for watching progress of bundle import
- Change the bundle-import-extension to a helpers lib that doesn't need to be
mixed in. It didn't need any state info.
- Move everyone to going through the single deployBundle function in the
helpers vs their own calls to the env.deployerImport
- Provide the ability to start a watch on a deployment.
- Add the methods to update with new notifications on each change to the watch
status of the import.
- Start a new test file for the bundle-import-helpers tests
- Remove the dupe idea of adding import notifications from the view utils,
it's part of the helpers.
QA
----
There are four QA methods that need testing as there are four ways to deploy
a bundle in the code. In order to QA you need to bring up a live environment.
I suggest that you use `juju quickstart` without any parameters to bring up
the environment.
Once it's up, you need to change the source to this branch with:
juju set juju-gui juju-gui-source='lp:~rharding/juju-gui/bundle-progress'
Now this takes a while. I found the best way to monitor it was to
juju ssh juju-gui/0
watch 'ps aux | grep config'
You then need to wait for the config-changed hook to finish running.
Once the config change hook is done, you can start to QA the four methods of
deploying a bundle.
1. Search for 'jorge' in the browser and drag-n-drop the discource bundle onto
the canvas.
2. Search for 'jorge' and click on the discourse bundle to view the details.
Then click on the deploy button and press "Yes I'm sure".
3. Use the import icon to import a local bundle file.
4. Drag-n-Drop a bundle file onto the canvas.
In each test case, what you're watching for are notifications that the bundle
has been requested, started, and completed. If the bundle is large the final
step might take a while.
Let me know if you've got any questions or issues qa'ing.
https://code.launchpad.net/~rharding/juju-gui/bundle-progress/+merge/195084
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : Add support for watching progress of bundle import #Patch Set 3 : Add support for watching progress of bundle import #Patch Set 4 : Add support for watching progress of bundle import #
Total comments: 8
Patch Set 5 : Add support for watching progress of bundle import #Patch Set 6 : Add support for watching progress of bundle import #
Total comments: 1
Patch Set 7 : Add support for watching progress of bundle import #Patch Set 8 : Add support for watching progress of bundle import #Patch Set 9 : Add support for watching progress of bundle import #
MessagesTotal messages: 13
|