~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/doc/bug-heat.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-02 23:44:26 UTC
  • mfrom: (13589.1.1 revert-r13574)
  • Revision ID: launchpad@pqm.canonical.com-20110802234426-z03j07sj334l9ay0
[r=wgrant][rollback=13574] Revert r13574. It crashes when the flag is
 enabled, see bug #810290.

Show diffs side-by-side

added added

removed removed

Lines of Context:
271
271
Calling our BugHeatUpdater will update the heat of those bugs.
272
272
 
273
273
    >>> update_bug_heat(chunk_size=1)
274
 
    DEBUG Updating heat for 1 bugs
275
 
 
276
 
IBugSet.getBugsWithOutdatedHeat() will now return 1 item.
277
 
 
278
 
    >>> getUtility(IBugSet).getBugsWithOutdatedHeat(1).count()
279
 
    1
280
 
 
281
 
Update the rest in one big chunk.
282
 
 
283
 
    >>> update_bug_heat(chunk_size=1000)
284
 
    DEBUG Updating heat for 1 bugs
 
274
    DEBUG Updating heat for 2 bugs
285
275
 
286
276
IBugSet.getBugsWithOutdatedHeat() will now return an empty set since all
287
277
the bugs have been updated.