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

Issue 18920045: Provide a 'deploy' button in quicksearch results.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 6 months ago by rharding
Modified:
10 years, 6 months ago
Reviewers:
mp+193059, jeff.pihach, gary.poster
Visibility:
Public.

Description

Provide a 'deploy' button in quicksearch results. - Add the control to the tokens for both charms and bundles - Wire up a new event that the search widget can fire EVT_DEPLOY - Make views that extend view.js (fullscree/sidebar) watch for that event and build a proper deploy command. - Make sure those views get access to the deploy and bundleDeploy helpers from the browser.js - Deploying does not actual perform a selection so no search or details takes place. It's an alternate behavior for quicksearch. Several drive-by fixes for things. Documented in the reviewer comments. QA: The button is feature flagged due to the fact that this quick deploy doesn't involve the charm cache and causes the inspector to 'hang' for a sec when you hit the deploy button. It's not an ideal experience. http://gui:8888/:flags:/searchDeploy Search for apa and then click on the + next to apache2. It should deploy to the canvas. No text is in the quicksearch box, no charm highlighted, etc. You can also QA this with a bundle. http://gui:8888/:flags:/searchDeploy/charmworldv3/ Now enter "TestB" and get the TestBundle result. Press the + to deploy the bundle. https://code.launchpad.net/~rharding/juju-gui/deploy-quicksearch/+merge/193059 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Provide a 'deploy' button in quicksearch results. #

Total comments: 38

Patch Set 3 : Provide a 'deploy' button in quicksearch results. #

Patch Set 4 : Provide a 'deploy' button in quicksearch results. #

Patch Set 5 : Provide a 'deploy' button in quicksearch results. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -29 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M app/app.js View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
A app/assets/images/search_add_to_canvas.png View 0 chunks +-1 lines, --1 lines 0 comments Download
M app/subapps/browser/browser.js View 1 2 4 chunks +20 lines, -6 lines 0 comments Download
M app/subapps/browser/views/charm.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M app/subapps/browser/views/entity-base.js View 1 2 3 4 1 chunk +22 lines, -6 lines 0 comments Download
M app/subapps/browser/views/view.js View 1 2 4 chunks +51 lines, -2 lines 0 comments Download
M app/templates/bundle-token.handlebars View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M app/templates/charm-token.handlebars View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M app/views/utils.js View 1 1 chunk +1 line, -1 line 0 comments Download
M app/widgets/charm-search.js View 1 2 7 chunks +94 lines, -8 lines 0 comments Download
M app/widgets/token.js View 1 chunk +10 lines, -0 lines 0 comments Download
M lib/views/browser/bws-searchbox.less View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M lib/views/browser/token.less View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
M test/test_browser_app.js View 1 2 3 4 6 chunks +38 lines, -2 lines 0 comments Download
M test/test_browser_charm_details.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M test/test_browser_search_widget.js View 1 3 chunks +48 lines, -0 lines 0 comments Download
M test/test_token.js View 1 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 11
rharding
Please take a look.
10 years, 6 months ago (2013-10-29 18:23:20 UTC) #1
rharding
Review comments https://codereview.appspot.com/18920045/diff/20001/app/subapps/browser/browser.js File app/subapps/browser/browser.js (right): https://codereview.appspot.com/18920045/diff/20001/app/subapps/browser/browser.js#newcode542 app/subapps/browser/browser.js:542: extraCfg.deploy = this.get('deployBundle'); Only set one deploy ...
10 years, 6 months ago (2013-10-29 18:31:54 UTC) #2
gary.poster
QA thought: what is the expected/desired behavior of the search dropdown when the deploy button ...
10 years, 6 months ago (2013-10-29 18:41:03 UTC) #3
rharding
On 2013/10/29 18:41:03, gary.poster wrote: > QA thought: what is the expected/desired behavior of the ...
10 years, 6 months ago (2013-10-29 18:42:45 UTC) #4
gary.poster
LGTM with comments; thank you! Gary https://codereview.appspot.com/18920045/diff/20001/app/subapps/browser/browser.js File app/subapps/browser/browser.js (right): https://codereview.appspot.com/18920045/diff/20001/app/subapps/browser/browser.js#newcode1165 app/subapps/browser/browser.js:1165: deployBundle: {}, On ...
10 years, 6 months ago (2013-10-29 19:09:46 UTC) #5
gary.poster
On 2013/10/29 18:42:45, rharding wrote: > On 2013/10/29 18:41:03, gary.poster wrote: > > QA thought: ...
10 years, 6 months ago (2013-10-29 19:11:00 UTC) #6
jeff.pihach
Thanks for this feature! I'll be doing the QA now, just wanted to get my ...
10 years, 6 months ago (2013-10-29 19:21:51 UTC) #7
jeff.pihach
QA OK Love this functionality, works great - just wish the button was a little ...
10 years, 6 months ago (2013-10-29 19:26:55 UTC) #8
jeff.pihach
LGTM as per our discussion on IRC. Thanks for this branch, great functionality.
10 years, 6 months ago (2013-10-29 19:31:59 UTC) #9
rharding
Please take a look. https://codereview.appspot.com/18920045/diff/20001/app/widgets/charm-search.js File app/widgets/charm-search.js (right): https://codereview.appspot.com/18920045/diff/20001/app/widgets/charm-search.js#newcode278 app/widgets/charm-search.js:278: if (ev.target.hasClass('search_add_to_canvas')) { On 2013/10/29 ...
10 years, 6 months ago (2013-10-30 12:12:55 UTC) #10
rharding
10 years, 6 months ago (2013-10-30 13:28:56 UTC) #11
*** Submitted:

Provide a 'deploy' button in quicksearch results.

- Add the control to the tokens for both charms and bundles
- Wire up a new event that the search widget can fire EVT_DEPLOY
- Make views that extend view.js (fullscree/sidebar) watch for that event and
build a proper deploy command.
- Make sure those views get access to the deploy and bundleDeploy helpers from
the browser.js
- Deploying does not actual perform a selection so no search or details takes
place. It's an alternate behavior for quicksearch.


Several drive-by fixes for things. Documented in the reviewer comments.


QA:

The button is feature flagged due to the fact that this quick deploy doesn't
involve the charm cache and causes the inspector to 'hang' for a sec when you
hit the deploy button. It's not an ideal experience.

http://gui:8888/:flags:/searchDeploy

Search for apa and then click on the + next to apache2. It should deploy to
the canvas. No text is in the quicksearch box, no charm highlighted, etc.

You can also QA this with a bundle.

http://gui:8888/:flags:/searchDeploy/charmworldv3/

Now enter "TestB" and get the TestBundle result. Press the + to deploy the
bundle.

R=gary.poster, jeff.pihach
CC=
https://codereview.appspot.com/18920045
Sign in to reply to this message.

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