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

Issue 9841044: Update the Charmworld store to use Api1 vs Api0

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by rharding
Modified:
10 years, 10 months ago
Reviewers:
j.c.sackett, jeff.pihach, mp+166284
Visibility:
Public.

Description

Update the Charmworld store to use Api1 vs Api0 - The new API changes some responses, update the store to handle these responses. - Update all code to change from the Charmworl0 store to the Charmworld1 store and update tests. - Pull down new test/sample json responses for the tests to reference. - Change some of the tests to verify against a known value vs whatever the sample api response pulls down. Should make less work to update again. - Update how the icons are displayed. They are no longer in the API response and so we need to generate links to them using the existing file api. - Add a handlebars helper to aid in generating those urls and knows about the store instance used. - Add a new tests for the new file path generation. https://code.launchpad.net/~rharding/juju-gui/charmworld-api1/+merge/166284 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 7

Patch Set 2 : Update the Charmworld store to use Api1 vs Api0 #

Patch Set 3 : Update the Charmworld store to use Api1 vs Api0 #

Patch Set 4 : Update the Charmworld store to use Api1 vs Api0 #

Patch Set 5 : Update the Charmworld store to use Api1 vs Api0 #

Patch Set 6 : Update the Charmworld store to use Api1 vs Api0 #

Patch Set 7 : Update the Charmworld store to use Api1 vs Api0 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15703 lines, -4675 lines) Patch
A [revision details] View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M app/models/charm.js View 6 chunks +26 lines, -5 lines 0 comments Download
M app/store/charm.js View 1 5 chunks +33 lines, -7 lines 0 comments Download
M app/subapps/browser/browser.js View 1 2 3 4 5 chunks +21 lines, -3 lines 0 comments Download
M app/subapps/browser/templates/browser_charm.handlebars View 1 chunk +4 lines, -5 lines 0 comments Download
M app/subapps/browser/views/charm.js View 2 chunks +5 lines, -2 lines 0 comments Download
M app/subapps/browser/views/charmresults.js View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M app/subapps/browser/views/view.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M app/templates/charm-token.handlebars View 1 chunk +2 lines, -2 lines 0 comments Download
M app/widgets/charm-token.js View 1 chunk +5 lines, -5 lines 0 comments Download
M docs/datasources.rst View 1 chunk +1 line, -1 line 0 comments Download
M test/data/browsercharm.json View 1 chunk +1972 lines, -334 lines 0 comments Download
M test/data/interesting.json View 1 chunk +13539 lines, -4268 lines 0 comments Download
M test/test_browser_app.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M test/test_browser_charm_details.js View 7 chunks +21 lines, -14 lines 0 comments Download
M test/test_browser_editorial.js View 1 2 3 4 11 chunks +22 lines, -11 lines 0 comments Download
M test/test_browser_search_view.js View 1 2 3 4 2 chunks +18 lines, -4 lines 0 comments Download
M test/test_charm_store.js View 4 chunks +17 lines, -5 lines 0 comments Download
M test/test_model.js View 4 chunks +11 lines, -5 lines 0 comments Download

Messages

Total messages: 7
rharding
Please take a look.
10 years, 10 months ago (2013-05-29 15:28:39 UTC) #1
jeff.pihach
LGTM with a few changes. Thanks for upgrading to the next version this should be ...
10 years, 10 months ago (2013-05-29 15:47:48 UTC) #2
rharding
On 2013/05/29 15:47:48, jeff.pihach wrote: > LGTM with a few changes. > > Thanks for ...
10 years, 10 months ago (2013-05-29 15:51:34 UTC) #3
jeff.pihach
On 2013/05/29 15:51:34, rharding wrote: > On 2013/05/29 15:47:48, jeff.pihach wrote: > > LGTM with ...
10 years, 10 months ago (2013-05-29 16:20:33 UTC) #4
j.c.sackett
LGTM, with one easy fix in comments. I am a little surprised we're just doing ...
10 years, 10 months ago (2013-05-29 16:52:18 UTC) #5
rharding
On 2013/05/29 16:52:18, j.c.sackett wrote: > LGTM, with one easy fix in comments. > > ...
10 years, 10 months ago (2013-05-29 17:42:47 UTC) #6
rharding
10 years, 10 months ago (2013-05-29 18:36:11 UTC) #7
*** Submitted:

Update the Charmworld store to use Api1 vs Api0

- The new API changes some responses, update the store to handle these
responses.
- Update all code to change from the Charmworl0 store to the Charmworld1 store
and update tests.
- Pull down new test/sample json responses for the tests to reference.
- Change some of the tests to verify against a known value vs whatever the
sample api response pulls down. Should make less work to update again.
- Update how the icons are displayed. They are no longer in the API response
and so we need to generate links to them using the existing file api.
- Add a handlebars helper to aid in generating those urls and knows about the
store instance used.
- Add a new tests for the new file path generation.

R=jeff.pihach, j.c.sackett
CC=
https://codereview.appspot.com/9841044
Sign in to reply to this message.

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