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

Issue 8623043: Change Go get_service results to match others.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years ago by bac
Modified:
11 years ago
Reviewers:
mp+158099, teknico, gary.poster
Visibility:
Public.

Description

Change Go get_service results to match others. Also bolster tests. https://code.launchpad.net/~bac/juju-gui/loadServiceTests/+merge/158099 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 23

Patch Set 2 : Change Go get_service results to match others. #

Patch Set 3 : Change Go get_service results to match others. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -5 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M app/store/env/go.js View 1 1 chunk +3 lines, -0 lines 0 comments Download
M test/test_app.js View 1 2 1 chunk +93 lines, -0 lines 0 comments Download
M test/test_charm_configuration.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/test_env_go.js View 1 2 chunks +6 lines, -2 lines 0 comments Download
M test/test_unit_view.js View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 4
bac
Please take a look.
11 years ago (2013-04-10 13:15:42 UTC) #1
teknico
LGTM, see trivials below. https://codereview.appspot.com/8623043/diff/1/app/store/env/go.js File app/store/env/go.js (right): https://codereview.appspot.com/8623043/diff/1/app/store/env/go.js#newcode611 app/store/env/go.js:611: // Set the service name ...
11 years ago (2013-04-10 13:36:16 UTC) #2
gary.poster
LGTM, though some of the changes I request are important. Thank you! Gary https://codereview.appspot.com/8623043/diff/1/app/store/env/go.js File ...
11 years ago (2013-04-10 14:01:42 UTC) #3
bac
11 years ago (2013-04-10 14:54:09 UTC) #4
*** Submitted:

Change Go get_service results to match others.

Also bolster tests.

R=teknico, gary.poster
CC=
https://codereview.appspot.com/8623043

https://codereview.appspot.com/8623043/diff/1/app/store/env/go.js
File app/store/env/go.js (right):

https://codereview.appspot.com/8623043/diff/1/app/store/env/go.js#newcode611
app/store/env/go.js:611: // Set the service name to 'name' for compatability
with other
On 2013/04/10 13:36:16, teknico wrote:
> Even though "compatability" has 60M Google hits against the 105M of
> "compatibility", it's still considered a misspelling. Go figure. :-)

Done.

https://codereview.appspot.com/8623043/diff/1/app/store/env/go.js#newcode613
app/store/env/go.js:613: data.Response.name = data.Response.Service;
I could but figured it just didn't matter.  <double-shrug>

https://codereview.appspot.com/8623043/diff/1/test/test_app.js
File test/test_app.js (right):

https://codereview.appspot.com/8623043/diff/1/test/test_app.js#newcode528
test/test_app.js:528: app = new Y.juju.App({ });
On 2013/04/10 14:01:42, gary.poster wrote:
> Please see
>
http://jujugui.wordpress.com/2013/04/10/test-tip-whenever-you-instantiate-our...

Done.

https://codereview.appspot.com/8623043/diff/1/test/test_app.js#newcode535
test/test_app.js:535: var notification = app.db.notifications.toArray()[0];
Yes, it was a dumb pattern used a few places.  I've changed them all.

https://codereview.appspot.com/8623043/diff/1/test/test_app.js#newcode536
test/test_app.js:536: notification.get('title').should.equal('Error loading
service');
Yes but it is 8 characters longer.

Changed.

Oh, :)

https://codereview.appspot.com/8623043/diff/1/test/test_app.js#newcode541
test/test_app.js:541: app = new Y.juju.App({ });
On 2013/04/10 14:01:42, gary.poster wrote:
> Same app cleanup request as before.

Done.

https://codereview.appspot.com/8623043/diff/1/test/test_app.js#newcode561
test/test_app.js:561: destroyMe.push(env);
On 2013/04/10 14:01:42, gary.poster wrote:
> IIRC app destoys its env. /me checks.  Yeah, it does. So this is fine but
> unnecessary.

Done.

https://codereview.appspot.com/8623043/diff/1/test/test_app.js#newcode563
test/test_app.js:563: app = new Y.juju.App({env: env });
On 2013/04/10 14:01:42, gary.poster wrote:
> Even with the env, the blog post still mentions the view thing that you should
> do here.

Done.

https://codereview.appspot.com/8623043/diff/1/test/test_env_go.js
File test/test_env_go.js (left):

https://codereview.appspot.com/8623043/diff/1/test/test_env_go.js#oldcode610
test/test_env_go.js:610: assert.equal(service_name, 'mysql');
On 2013/04/10 14:01:42, gary.poster wrote:
> Why don't you want this any more?

Done.

https://codereview.appspot.com/8623043/diff/1/test/test_env_go.js
File test/test_env_go.js (right):

https://codereview.appspot.com/8623043/diff/1/test/test_env_go.js#newcode602
test/test_env_go.js:602: service_name = data.service_name;
On 2013/04/10 14:01:42, gary.poster wrote:
> This is no longer used in the test (not sure why, but commenting on that
later)

Done.

https://codereview.appspot.com/8623043/diff/1/test/test_env_go.js#newcode610
test/test_env_go.js:610: expected.name = result.name;
On 2013/04/10 14:01:42, gary.poster wrote:
> should this be "expected.name = 'mysql';"?

Done.
Sign in to reply to this message.

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