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

Issue 14036044: Move resultsToCharmlist to transformResults.

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

Description

Move resultsToCharmlist to transformResults. In APIv3 support bundles and return an array of charm and bundle objects. https://code.launchpad.net/~bac/juju-gui/bundle-open-api/+merge/187941 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 12

Patch Set 2 : Move resultsToCharmlist to transformResults. #

Patch Set 3 : Move resultsToCharmlist to transformResults. #

Patch Set 4 : Move resultsToCharmlist to transformResults. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -48 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M app/store/charm.js View 1 14 chunks +62 lines, -35 lines 0 comments Download
M app/subapps/browser/views/editorial.js View 1 chunk +3 lines, -3 lines 0 comments Download
M app/subapps/browser/views/search.js View 1 chunk +1 line, -1 line 0 comments Download
M app/subapps/browser/views/view.js View 1 chunk +1 line, -1 line 0 comments Download
M app/widgets/charm-search.js View 1 chunk +1 line, -1 line 0 comments Download
M test/test_browser_search_widget.js View 1 chunk +1 line, -1 line 0 comments Download
M test/test_charm_store.js View 1 5 chunks +50 lines, -3 lines 0 comments Download
M test/test_model.js View 1 chunk +1 line, -1 line 0 comments Download
M test/utils.js View 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 3
bac
Please take a look.
10 years, 7 months ago (2013-09-27 12:42:06 UTC) #1
benji
Very nice. LGTM-ly y'rs Benji https://codereview.appspot.com/14036044/diff/1/app/store/charm.js File app/store/charm.js (right): https://codereview.appspot.com/14036044/diff/1/app/store/charm.js#newcode131 app/store/charm.js:131: * Send the actual ...
10 years, 7 months ago (2013-09-27 13:11:21 UTC) #2
bac
10 years, 7 months ago (2013-09-27 14:50:51 UTC) #3
*** Submitted:

Move resultsToCharmlist to transformResults.

In APIv3 support bundles and return an array of charm and bundle objects.

R=benji
CC=
https://codereview.appspot.com/14036044

https://codereview.appspot.com/14036044/diff/1/app/store/charm.js
File app/store/charm.js (right):

https://codereview.appspot.com/14036044/diff/1/app/store/charm.js#newcode131
app/store/charm.js:131: * Send the actual request and handle response from the
API.
On 2013/09/27 13:11:21, benji wrote:
> Pendantry high-five!

Done.

https://codereview.appspot.com/14036044/diff/1/app/store/charm.js#newcode420
app/store/charm.js:420: *
On 2013/09/27 13:11:21, benji wrote:
> An @return would be nice.

Done.

https://codereview.appspot.com/14036044/diff/1/app/store/charm.js#newcode430
app/store/charm.js:430: if (entity.charm !== undefined) {
On 2013/09/27 13:11:21, benji wrote:
> It would be a teeny-tiny bit clearer if this were a non-negative test...
almost
> not worth mentioning.

Done.

https://codereview.appspot.com/14036044/diff/1/app/store/charm.js#newcode724
app/store/charm.js:724: * @param {Object} JSON decoded data from response.
On 2013/09/27 13:11:21, benji wrote:
> [This was just moved from above, I know, but...] an @return would be nice.

Done.

https://codereview.appspot.com/14036044/diff/1/test/test_model.js
File test/test_model.js (left):

https://codereview.appspot.com/14036044/diff/1/test/test_model.js#oldcode808
test/test_model.js:808: fakeStore = utils.makeFakeStore(db.charms);
This is the test that was passing a cache that was never used.

https://codereview.appspot.com/14036044/diff/1/test/utils.js
File test/utils.js (left):

https://codereview.appspot.com/14036044/diff/1/test/utils.js#oldcode140
test/utils.js:140: makeFakeStore: function(cache) {
Well one did (see below) but it wasn't used, which was missed due to the
confusing re-use of the 'cache' parameter below in the returned method.
Sign in to reply to this message.

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