Merge lp:~michael.nelson/ubuntu-webcatalog/788207-display-reviews-non-js into lp:ubuntu-webcatalog
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Łukasz Czyżykowski | ||||
Approved revision: | 60 | ||||
Merged at revision: | 52 | ||||
Proposed branch: | lp:~michael.nelson/ubuntu-webcatalog/788207-display-reviews-non-js | ||||
Merge into: | lp:ubuntu-webcatalog | ||||
Diff against target: |
486 lines (+188/-29) 18 files modified
.bzrignore (+1/-0) django_project/config/main.cfg (+1/-0) src/webcatalog/management/commands/import_for_purchase_apps.py (+0/-2) src/webcatalog/management/commands/import_ratings_stats.py (+6/-5) src/webcatalog/schema.py (+1/-0) src/webcatalog/static/css/webcatalog.css (+22/-1) src/webcatalog/templates/webcatalog/application_detail.html (+1/-1) src/webcatalog/templates/webcatalog/application_overview_snippet.html (+1/-1) src/webcatalog/templates/webcatalog/application_review_list.html (+39/-0) src/webcatalog/templates/webcatalog/breadcrumbs_snippet.html (+1/-1) src/webcatalog/templates/webcatalog/rating_summary.html (+4/-2) src/webcatalog/templatetags/webcatalog.py (+6/-6) src/webcatalog/tests/test_commands.py (+3/-3) src/webcatalog/tests/test_templatetags.py (+1/-4) src/webcatalog/tests/test_views.py (+64/-0) src/webcatalog/urls.py (+4/-0) src/webcatalog/utilities.py (+11/-0) src/webcatalog/views.py (+22/-3) |
||||
To merge this branch: | bzr merge lp:~michael.nelson/ubuntu-webcatalog/788207-display-reviews-non-js | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Łukasz Czyżykowski | Pending | ||
Review via email: mp+75527@code.launchpad.net |
Commit message
Provide a non-js view displaying reviews for an app.
Description of the change
Overview
========
This branch is the first step towards loading reviews live into the app details page (bug 788207).
It provides a non-js page displaying the first page of reviews for an app.
The next branches will:
* Add a custom paginator object for use on the reviews page,
* Extract just the snippet with the reviews to a separate template, which can then be rendered on its own when requested via JS.
* Add the JS to progressively enhance the details page (without js, just a link to reviews, but js will replace that with actual reviews).
To test: `fab bootstrap && fab test`
Screenshot on the bug.
I also updated the import ratings stats management command so that we pull stats for all origins (as currenly we only support ubuntu and commercial PPAs afaik), as otherwise we don't get ratings for commercial apps.