Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1121)

Issue 26290043: Add support for watching progress of bundle import

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by rharding
Modified:
10 years, 5 months ago
Reviewers:
mp+195084, jeff.pihach, matthew.scott
Visibility:
Public.

Description

Add 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+679 lines, -129 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M app/app.js View 1 2 3 4 5 6 7 8 chunks +27 lines, -24 lines 0 comments Download
M app/assets/javascripts/bundle-import-helpers.js View 1 2 3 4 5 6 7 8 2 chunks +202 lines, -30 lines 0 comments Download
M app/modules-debug.js View 1 chunk +2 lines, -2 lines 0 comments Download
M app/store/env/go.js View 1 2 3 4 5 6 7 1 chunk +91 lines, -0 lines 0 comments Download
M app/views/topology/service.js View 1 2 3 4 5 6 7 5 chunks +13 lines, -13 lines 0 comments Download
M app/views/utils.js View 1 chunk +0 lines, -18 lines 0 comments Download
M bin/merge-files View 1 chunk +1 line, -1 line 0 comments Download
M test/index.html View 1 1 chunk +1 line, -0 lines 0 comments Download
A test/test_bundle_import_helpers.js View 1 2 3 4 5 6 7 1 chunk +303 lines, -0 lines 0 comments Download
M test/test_env_go.js View 1 2 chunks +30 lines, -0 lines 0 comments Download
M test/test_service_module.js View 1 2 3 4 5 6 7 1 chunk +7 lines, -2 lines 0 comments Download
M test/test_utils.js View 1 chunk +0 lines, -39 lines 0 comments Download

Messages

Total messages: 13
rharding
Please take a look.
10 years, 5 months ago (2013-11-14 16:08:53 UTC) #1
rharding
Please take a look.
10 years, 5 months ago (2013-11-14 19:33:04 UTC) #2
rharding
Please take a look.
10 years, 5 months ago (2013-11-14 19:35:58 UTC) #3
rharding
Please take a look.
10 years, 5 months ago (2013-11-14 20:12:23 UTC) #4
rharding
Please take a look.
10 years, 5 months ago (2013-11-14 20:17:25 UTC) #5
rharding
Please take a look.
10 years, 5 months ago (2013-11-14 21:07:44 UTC) #6
jeff.pihach
This is looking really good I have some small comments mostly related to naming but ...
10 years, 5 months ago (2013-11-14 21:30:52 UTC) #7
rharding
On 2013/11/14 21:30:52, jeff.pihach wrote: > This is looking really good I have some small ...
10 years, 5 months ago (2013-11-15 12:16:08 UTC) #8
rharding
Please take a look.
10 years, 5 months ago (2013-11-15 14:03:26 UTC) #9
jeff.pihach
LGTM no qa yet
10 years, 5 months ago (2013-11-15 14:14:16 UTC) #10
jeff.pihach
QA OK Let-r-rip!
10 years, 5 months ago (2013-11-15 20:01:27 UTC) #11
matthew.scott
LGTM! Thanks!
10 years, 5 months ago (2013-11-15 20:20:25 UTC) #12
rharding
10 years, 5 months ago (2013-11-15 20:43:32 UTC) #13
*** Submitted:

Add 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.

R=jeff.pihach, matthew.scott
CC=
https://codereview.appspot.com/26290043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b