Merge lp:~rharding/juju-gui/release-quick-deploy into lp:juju-gui/experimental

Proposed by Richard Harding
Status: Merged
Merged at revision: 1178
Proposed branch: lp:~rharding/juju-gui/release-quick-deploy
Merge into: lp:juju-gui/experimental
Diff against target: 71 lines (+0/-8)
4 files modified
app/templates/bundle-token.handlebars (+0/-2)
app/templates/charm-token.handlebars (+0/-2)
test/test_browser_search_widget.js (+0/-2)
test/test_token.js (+0/-2)
To merge this branch: bzr merge lp:~rharding/juju-gui/release-quick-deploy
Reviewer Review Type Date Requested Status
Juju GUI Hackers Pending
Review via email: mp+193816@code.launchpad.net

Description of the change

Remove "deploy from quicksearch" feature flag.

https://codereview.appspot.com/21480044/

To post a comment you must log in.
Revision history for this message
Richard Harding (rharding) wrote :
Download full text (3.4 KiB)

Reviewers: mp+193816_code.launchpad.net,

Message:
Please take a look.

Description:
Remove "deploy from quicksearch" feature flag.

https://code.launchpad.net/~rharding/juju-gui/release-quick-deploy/+merge/193816

(do not edit description out of merge proposal)

Please review this at https://codereview.appspot.com/21480044/

Affected files (+2, -8 lines):
   A [revision details]
   M app/templates/bundle-token.handlebars
   M app/templates/charm-token.handlebars
   M test/test_browser_search_widget.js
   M test/test_token.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: <email address hidden>
+New revision: <email address hidden>

Index: test/test_browser_search_widget.js
=== modified file 'test/test_browser_search_widget.js'
--- test/test_browser_search_widget.js 2013-10-29 18:16:16 +0000
+++ test/test_browser_search_widget.js 2013-11-04 16:40:41 +0000
@@ -328,7 +328,6 @@
    });

    it('fires deploy event when the deploy button is selected',
function(done) {
- window.flags.searchDeploy = true;
      // This is heading into the private, non-publicized events of the AC
      // widget in an effort to hit the html on render after results come
      // back.
@@ -343,7 +342,6 @@
        assert.equal(ev.entityType, 'charm');
        assert.equal(ev.id, 'precise/apache2-passenger-3');
        assert.equal(ev.data.url, 'cs:precise/apache2-passenger-3');
- window.flags = {};
        done();
      });

Index: test/test_token.js
=== modified file 'test/test_token.js'
--- test/test_token.js 2013-10-29 18:16:16 +0000
+++ test/test_token.js 2013-11-04 16:40:41 +0000
@@ -247,7 +247,6 @@
    });

    it('renders the deployer button when asked to', function() {
- window.flags.searchDeploy = true;
      var token = new Token({
        size: 'tiny',
        storeId: 'test',
@@ -266,7 +265,6 @@
      var button = token_container.one('.deployButton');
      var sprite = button.one('i');
      assert.equal(sprite.getAttribute('data-charmid'), 'test');
- window.flags = {};
    });

  });

Index: app/templates/bundle-token.handlebars
=== modified file 'app/templates/bundle-token.handlebars'
--- app/templates/bundle-token.handlebars 2013-10-31 19:01:36 +0000
+++ app/templates/bundle-token.handlebars 2013-11-04 16:40:41 +0000
@@ -2,11 +2,9 @@
      test/test_charm_running.py. If you change this name, change the other
      one too! }}
  {{#if deployButton}}
- {{#ifFlag 'searchDeploy'}}
      <a class="deployButton bundle" href="">
          <i class="sprite search_add_to_canvas" data-bundleid="{{id}}"
title="Deploy bundle"></i>
      </a>
- {{/ifFlag}}
  {{/if}}
  <a href="/bundle/{{id}}"
     class="token {{size}}"

Index: app/templates/charm-token.handlebars
=== modified file 'app/templates/charm-token.handlebars'
--- app/templates/charm-token.handlebars 2013-10-30 13:23:16 +0000
+++ app/templates/charm-token.handlebars 2013-11-04 16:40:41 +0000
@@ -3,11 +3,9 @@
      one too! }}

  {{#if deployButton}}
- {{#ifFla...

Read more...

Revision history for this message
Richard Harding (rharding) wrote :

LGTM self-reviewing trivial 8-line removal of flag.

The delay works the same if using the quick search or the normal deploy
button. The cache issues are bigger and file a new bug #1247893 about
them.

https://codereview.appspot.com/21480044/

Revision history for this message
Richard Harding (rharding) wrote :

*** Submitted:

Remove "deploy from quicksearch" feature flag.

R=
CC=
https://codereview.appspot.com/21480044

https://codereview.appspot.com/21480044/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'app/templates/bundle-token.handlebars'
--- app/templates/bundle-token.handlebars 2013-10-31 19:01:36 +0000
+++ app/templates/bundle-token.handlebars 2013-11-04 16:50:34 +0000
@@ -2,11 +2,9 @@
2 test/test_charm_running.py. If you change this name, change the other2 test/test_charm_running.py. If you change this name, change the other
3 one too! }}3 one too! }}
4{{#if deployButton}}4{{#if deployButton}}
5 {{#ifFlag 'searchDeploy'}}
6 <a class="deployButton bundle" href="">5 <a class="deployButton bundle" href="">
7 <i class="sprite search_add_to_canvas" data-bundleid="{{id}}" title="Deploy bundle"></i>6 <i class="sprite search_add_to_canvas" data-bundleid="{{id}}" title="Deploy bundle"></i>
8 </a>7 </a>
9 {{/ifFlag}}
10{{/if}}8{{/if}}
11<a href="/bundle/{{id}}"9<a href="/bundle/{{id}}"
12 class="token {{size}}"10 class="token {{size}}"
1311
=== modified file 'app/templates/charm-token.handlebars'
--- app/templates/charm-token.handlebars 2013-10-30 13:23:16 +0000
+++ app/templates/charm-token.handlebars 2013-11-04 16:50:34 +0000
@@ -3,11 +3,9 @@
3 one too! }}3 one too! }}
44
5{{#if deployButton}}5{{#if deployButton}}
6 {{#ifFlag 'searchDeploy'}}
7 <a class="deployButton" href="">6 <a class="deployButton" href="">
8 <i class="sprite search_add_to_canvas" data-charmid="{{storeId}}" title="Deploy service"></i>7 <i class="sprite search_add_to_canvas" data-charmid="{{storeId}}" title="Deploy service"></i>
9 </a>8 </a>
10 {{/ifFlag}}
11{{/if}}9{{/if}}
12<a href="/{{storeId}}"10<a href="/{{storeId}}"
13 class="token {{size}}"11 class="token {{size}}"
1412
=== modified file 'test/test_browser_search_widget.js'
--- test/test_browser_search_widget.js 2013-10-29 18:16:16 +0000
+++ test/test_browser_search_widget.js 2013-11-04 16:50:34 +0000
@@ -328,7 +328,6 @@
328 });328 });
329329
330 it('fires deploy event when the deploy button is selected', function(done) {330 it('fires deploy event when the deploy button is selected', function(done) {
331 window.flags.searchDeploy = true;
332 // This is heading into the private, non-publicized events of the AC331 // This is heading into the private, non-publicized events of the AC
333 // widget in an effort to hit the html on render after results come332 // widget in an effort to hit the html on render after results come
334 // back.333 // back.
@@ -343,7 +342,6 @@
343 assert.equal(ev.entityType, 'charm');342 assert.equal(ev.entityType, 'charm');
344 assert.equal(ev.id, 'precise/apache2-passenger-3');343 assert.equal(ev.id, 'precise/apache2-passenger-3');
345 assert.equal(ev.data.url, 'cs:precise/apache2-passenger-3');344 assert.equal(ev.data.url, 'cs:precise/apache2-passenger-3');
346 window.flags = {};
347 done();345 done();
348 });346 });
349347
350348
=== modified file 'test/test_token.js'
--- test/test_token.js 2013-10-29 18:16:16 +0000
+++ test/test_token.js 2013-11-04 16:50:34 +0000
@@ -247,7 +247,6 @@
247 });247 });
248248
249 it('renders the deployer button when asked to', function() {249 it('renders the deployer button when asked to', function() {
250 window.flags.searchDeploy = true;
251 var token = new Token({250 var token = new Token({
252 size: 'tiny',251 size: 'tiny',
253 storeId: 'test',252 storeId: 'test',
@@ -266,7 +265,6 @@
266 var button = token_container.one('.deployButton');265 var button = token_container.one('.deployButton');
267 var sprite = button.one('i');266 var sprite = button.one('i');
268 assert.equal(sprite.getAttribute('data-charmid'), 'test');267 assert.equal(sprite.getAttribute('data-charmid'), 'test');
269 window.flags = {};
270 });268 });
271269
272});270});

Subscribers

People subscribed via source and target branches