Merge lp:~jtatum/ubuntu-accomplishments-daemon/lp-caching-part-1 into lp:ubuntu-accomplishments-daemon
Status: | Rejected |
---|---|
Rejected by: | Jono Bacon |
Proposed branch: | lp:~jtatum/ubuntu-accomplishments-daemon/lp-caching-part-1 |
Merge into: | lp:ubuntu-accomplishments-daemon |
Diff against target: |
126 lines (+117/-0) 2 files modified
accomplishments/lpdata.py (+35/-0) accomplishments/util/cacheddata.py (+82/-0) |
To merge this branch: | bzr merge lp:~jtatum/ubuntu-accomplishments-daemon/lp-caching-part-1 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jono Bacon | Disapprove | ||
Rafał Cieślak | Needs Information | ||
Review via email: mp+105419@code.launchpad.net |
Description of the change
This is part one of changes for simplifying LaunchPad (and other) related accomplishments and caching LaunchPad output so we don't beat it up so much.
The basic premise here is to create an object that a) makes it possible to easily query team membership and other launchpad data and b) store the output locally rather than constantly asking LP each script.
This enables code that executes pretty much instantly on cache hits and looks like:
>>> import accomplishments
Daemon seems to be run not installed, branch base path used: /mnt/hgfs/
>>> me = accomplishments
>>> 'locoteams' in me.super_teams
True
>>> 'motu' in me.super_teams
False
>>> 'ubuntu-california' in me.direct_teams
True
Unmerged revisions
- 41. By James Tatum
-
New editor was set to use tabs in some places. Hopefully fixed
- 40. By James Tatum
-
Removing some extra whitespace
- 39. By James Tatum
-
First part of LaunchPad data caching mechanism and accomplishment simplification
- 38. By Launchpad Translations on behalf of jonobacon
-
Launchpad automatic translations update.
I put this in the daemon code on the assumption that it would be useful to multiple consumers, but if we think that only ubuntu- community- accomplishments will need it then it probably belongs there.