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

Issue 30210044: Display bundle download counts in the UI.

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

Description

Display bundle download counts in the UI. - Update the model to carry the attribute from the api. - Update the token to display the "Deployed X times". - Update the details to also display the count. - Drive-by to update the attributes in the charm model. - Update tests with updated api download from the server that includes the download counts. Required updating tests to the new data. https://code.launchpad.net/~rharding/juju-gui/bundle-counts/+merge/196135 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Display bundle download counts in the UI. #

Total comments: 9

Patch Set 3 : Display bundle download counts in the UI. #

Patch Set 4 : Display bundle download counts in the UI. #

Patch Set 5 : Display bundle download counts in the UI. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1284 lines, -1175 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M app/models/bundle.js View 1 2 2 chunks +27 lines, -0 lines 0 comments Download
M app/models/charm.js View 1 2 2 chunks +12 lines, -9 lines 0 comments Download
M app/templates/bundle.handlebars View 1 2 chunks +2 lines, -0 lines 0 comments Download
M app/templates/bundle-token.handlebars View 1 1 chunk +1 line, -0 lines 0 comments Download
M test/data/browserbundle.json View 1 chunk +1199 lines, -1155 lines 0 comments Download
M test/test_bundle_details_view.js View 1 chunk +3 lines, -0 lines 0 comments Download
M test/test_model_bundle.js View 3 chunks +30 lines, -8 lines 0 comments Download
M test/test_token.js View 2 chunks +6 lines, -1 line 0 comments Download
M test/test_utils.js View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5
rharding
Please take a look.
10 years, 5 months ago (2013-11-21 15:12:47 UTC) #1
rharding
Please take a look.
10 years, 5 months ago (2013-11-21 18:10:32 UTC) #2
rharding
Reviewer comments https://codereview.appspot.com/30210044/diff/20001/app/models/bundle.js File app/models/bundle.js (right): https://codereview.appspot.com/30210044/diff/20001/app/models/bundle.js#newcode57 app/models/bundle.js:57: this.set('recent_download_count', cfg.downloads_in_past_30_days); the api is downloads_in_past_30_days but ...
10 years, 5 months ago (2013-11-21 18:13:41 UTC) #3
jeff.pihach
LGTM Thanks for adding this to the UI. Using a valueFn here looks to be ...
10 years, 5 months ago (2013-11-21 18:56:37 UTC) #4
rharding
10 years, 5 months ago (2013-11-21 19:14:52 UTC) #5
*** Submitted:

Display bundle download counts in the UI.

- Update the model to carry the attribute from the api.
- Update the token to display the "Deployed X times".
- Update the details to also display the count.
- Drive-by to update the attributes in the charm model.
- Update tests with updated api download from the server that includes the
download counts. Required updating tests to the new data.

R=jeff.pihach
CC=
https://codereview.appspot.com/30210044
Sign in to reply to this message.

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