Merge lp:~benji/launchpad/bug-877195-code into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | j.c.sackett | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 14364 | ||||
Proposed branch: | lp:~benji/launchpad/bug-877195-code | ||||
Merge into: | lp:launchpad | ||||
Prerequisite: | lp:~benji/launchpad/bug-877195-db | ||||
Diff against target: |
253 lines (+197/-4) 6 files modified
lib/canonical/config/schema-lazr.conf (+7/-0) lib/lp/translations/browser/translationmessage.py (+3/-4) lib/lp/translations/configure.zcml (+9/-0) lib/lp/translations/interfaces/pofilestatsjob.py (+16/-0) lib/lp/translations/model/pofilestatsjob.py (+88/-0) lib/lp/translations/tests/test_pofilestatsjob.py (+74/-0) |
||||
To merge this branch: | bzr merge lp:~benji/launchpad/bug-877195-code | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
j.c.sackett (community) | Approve | ||
Review via email: mp+80619@code.launchpad.net |
This proposal supersedes a proposal from 2011-10-27.
Commit message
[r=jcsackett] move POFile statistics update into a job
Description of the change
When a change is made to a translation several statistics about that
translation are updated. That update is slow. So slow that it often
times out. Bug 877195 is about moving those statistics updates into a
job so the web requests can return faster but the statistics will still
be relatively up to date.
I had pre-implementation calls with Danilo.
There is a prerequisite branch that includes the database changes.
Tests for the new job are in
lib/lp/
bin/test -c -m lp.translations
The "make lint" report is clean.
QA: note a translations statistics, make a change to a translation that
would impact its statistics, get a LOSA to run the cron job, verify that
the statistics changed.
This looks good to me, Benji. Thanks for offloading this work into a job, sounds like a good fix.