Add support for multiple categories and sub-categories
Bug #1002149 reported by
Jono Bacon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Accomplishments Daemon |
Fix Released
|
High
|
Rafał Cieślak | ||
Ubuntu Accomplishments Viewer |
Fix Released
|
High
|
Jono Bacon |
Bug Description
A goal for 0.2 is to add suport for multiple categories as well as sub-categories. They will be added in a format such as this to the .accomplishment file:
depends = Development, Launchpad:Your Profile
Here multiple categories are divded by a comma and a sub-category is defined using a colon (Category:
Related branches
Changed in ubuntu-accomplishments-viewer: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Jono Bacon (jonobacon) |
Changed in ubuntu-accomplishments-daemon: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Rafal Cieślak (rafalcieslak256) |
milestone: | none → 0.2 |
Changed in ubuntu-accomplishments-viewer: | |
milestone: | none → 0.2 |
Changed in ubuntu-accomplishments-daemon: | |
status: | Confirmed → Fix Committed |
Changed in ubuntu-accomplishments-viewer: | |
status: | Confirmed → Fix Committed |
Changed in ubuntu-accomplishments-daemon: | |
status: | Fix Committed → Won't Fix |
status: | Won't Fix → Fix Released |
Changed in ubuntu-accomplishments-viewer: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Attached to this bug report is support for sub-categories in the viewer. Some notes:
* The sub-category view is only shown when a category is selected. Otherwise the sub-category arrow sliders are not shown.
* Every category has an 'Other' sub-category added which should show all accomplishments in that category that don't have sub-categories assigned.
* The arrows should be be insensitive when the number of sub-categories don't require the arrows to scroll. I haven't figured out how to do this yet, so they are always sensitive right now.
From an implementation perspective this is how it works:
* update_views() calls subcats_show() which generates the subcats section.
* Inside subcats_show() we call get_subcats() which should talk to the daemon and return a list of sub-categories for the currently selected collection and category. Currently get_subcats() is in the viewer and returns hard-coded data to demonstrate the feature, but get_subcats() should probably be in the daemon.
* This branch does not include support for multiple categories, but just subcatories.