DescriptionProvide 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. #
MessagesTotal messages: 11
|