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.
Affected files (+1306, -1168 lines):
A [revision details]
M app/models/bundle.js
M app/models/charm.js
M app/templates/bundle-token.handlebars
M app/templates/bundle.handlebars
M test/data/browserbundle.json
M test/test_bundle_details_view.js
M test/test_model_bundle.js
M test/test_token.js
M test/test_utils.js
Reviewers: mp+196135_ code.launchpad. net,
Message:
Please take a look.
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)
Please review this at https:/ /codereview. appspot. com/30210044/
Affected files (+1306, -1168 lines): bundle. js bundle- token.handlebar s bundle. handlebars browserbundle. json bundle_ details_ view.js model_bundle. js
A [revision details]
M app/models/
M app/models/charm.js
M app/templates/
M app/templates/
M test/data/
M test/test_
M test/test_
M test/test_token.js
M test/test_utils.js