Merge lp:~sinzui/charmworld/sane-categories into lp:~juju-jitsu/charmworld/trunk
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | 301 |
Merged at revision: | 300 |
Proposed branch: | lp:~sinzui/charmworld/sane-categories |
Merge into: | lp:~juju-jitsu/charmworld/trunk |
Diff against target: |
105 lines (+41/-2) 5 files modified
charmworld/models.py (+13/-1) charmworld/static/css/theme.less (+4/-0) charmworld/templates/charm.pt (+7/-0) charmworld/tests/test_models.py (+12/-1) charmworld/views/tests/test_api.py (+5/-0) |
To merge this branch: | bzr merge lp:~sinzui/charmworld/sane-categories |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Aaron Bentley (community) | Approve | ||
Review via email: mp+173570@code.launchpad.net |
Commit message
Do not include bogus categories in charm data.
Description of the change
The GUI is mis-rendering the icons for charms with invalid categories
RULES
Pre-
* Proof does not enforce the 6 valid categories because it wants to
maintain backward compatibility. The API though, does need to enforce
the categories to discourage mistakes and community fragmentation.
* The Charm model object is passing the categories to the API and pages.
It ensures categories is a list.
* It must also ensure the categories are one or more of the official
categories.
Extra credit
* Update the charm page to list the categories after the summary.
QA
* Visit http://
* Verify the categories property does not contain "application".
* Visit http://
* Verify the categories property shown, but there are no categories.