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

Issue 13660050: Add Bundle model. No visible changes.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by bac
Modified:
11 years, 10 months ago
Reviewers:
jeff.pihach, mp+187112, benji
Visibility:
Public.

Description

Add Bundle model. No visible changes. QA unnecessary as no moving parts are affected. https://code.launchpad.net/~bac/juju-gui/bundle-model/+merge/187112 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 12

Patch Set 2 : Add Bundle model. No visible changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+351 lines, -8 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
A app/models/bundle.js View 1 1 chunk +131 lines, -0 lines 0 comments Download
M app/models/charm.js View 2 chunks +2 lines, -2 lines 0 comments Download
M app/modules-debug.js View 1 chunk +4 lines, -0 lines 0 comments Download
A test/data/browserbundle.json View 1 chunk +52 lines, -0 lines 0 comments Download
M test/index.html View 1 chunk +1 line, -0 lines 0 comments Download
M test/test_model.js View 1 2 chunks +8 lines, -5 lines 0 comments Download
A test/test_model_bundle.js View 1 1 chunk +150 lines, -0 lines 0 comments Download
M test/utils.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
bac
Please take a look.
11 years, 10 months ago (2013-09-23 21:43:38 UTC) #1
jeff.pihach
LGTM, trivial comment https://codereview.appspot.com/13660050/diff/1/app/models/bundle.js File app/models/bundle.js (right): https://codereview.appspot.com/13660050/diff/1/app/models/bundle.js#newcode54 app/models/bundle.js:54: this.set('id', this.get('id')); this is setting it ...
11 years, 10 months ago (2013-09-24 05:30:03 UTC) #2
benji
LGTM. I just had one or two small comments. https://codereview.appspot.com/13660050/diff/1/test/test_model_bundle.js File test/test_model_bundle.js (right): https://codereview.appspot.com/13660050/diff/1/test/test_model_bundle.js#newcode34 test/test_model_bundle.js:34: ...
11 years, 10 months ago (2013-09-24 12:49:02 UTC) #3
bac
11 years, 10 months ago (2013-09-24 14:21:29 UTC) #4
*** Submitted:

Add Bundle model.  No visible changes.

QA unnecessary as no moving parts are affected.

R=jeff.pihach, benji
CC=
https://codereview.appspot.com/13660050

https://codereview.appspot.com/13660050/diff/1/app/models/bundle.js
File app/models/bundle.js (right):

https://codereview.appspot.com/13660050/diff/1/app/models/bundle.js#newcode54
app/models/bundle.js:54: this.set('id', this.get('id'));
On 2013/09/24 05:30:03, jeff.pihach wrote:
> this is setting it to itself so not needed

Done.

https://codereview.appspot.com/13660050/diff/1/test/test_model.js
File test/test_model.js (right):

https://codereview.appspot.com/13660050/diff/1/test/test_model.js#newcode638
test/test_model.js:638: sampleData = Y.io('data/browsercharm.json', {sync:
true});
On 2013/09/24 05:30:03, jeff.pihach wrote:
> It would sure be great if we didn't have to make a get request on every test,
we
> should cache these.

Done.

https://codereview.appspot.com/13660050/diff/1/test/test_model_bundle.js
File test/test_model_bundle.js (right):

https://codereview.appspot.com/13660050/diff/1/test/test_model_bundle.js#newc...
test/test_model_bundle.js:34: bundle.get('id').should.equal('~bac/wiki/3/wiki');
On 2013/09/24 12:49:03, benji wrote:
> [Benji's eyes begin to bleed.]

Done.

https://codereview.appspot.com/13660050/diff/1/test/test_model_bundle.js#newc...
test/test_model_bundle.js:39: describe('Bundle tests', function() {
On 2013/09/24 12:49:03, benji wrote:
> Because of the stupid^W"unusual" test framework, this needs to be a noun
phrase.
>  Maybe "The bundle model".

Done.

https://codereview.appspot.com/13660050/diff/1/test/test_model_bundle.js#newc...
test/test_model_bundle.js:55: sampleData = Y.io('data/browserbundle.json',
{sync: true});
On 2013/09/24 12:49:03, benji wrote:
> Whatever we do with the analogous setup in the charm model tests, we should do
> the same here.

Done.

https://codereview.appspot.com/13660050/diff/1/test/utils.js
File test/utils.js (right):

https://codereview.appspot.com/13660050/diff/1/test/utils.js#newcode183
test/utils.js:183: @param {String} YAMLBundleURL File to import.
On 2013/09/24 12:49:03, benji wrote:
> I love the smell of punctuation in the morning.

Thanks linter!
Sign in to reply to this message.

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