Merge lp:~stub/launchpad/session-prune into lp:launchpad/db-devel
Proposed by
Stuart Bishop
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Stuart Bishop | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 10275 | ||||
Proposed branch: | lp:~stub/launchpad/session-prune | ||||
Merge into: | lp:launchpad/db-devel | ||||
Diff against target: |
206 lines (+106/-36) 2 files modified
lib/lp/scripts/garbo.py (+29/-16) lib/lp/scripts/tests/test_garbo.py (+77/-20) |
||||
To merge this branch: | bzr merge lp:~stub/launchpad/session-prune | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | code | Approve | |
Review via email: mp+52532@code.launchpad.net |
This proposal supersedes a proposal from 2011-03-08.
Commit message
[r=gmb][bug=357516,729019] If a user has multiple authenticated sessions, prune all but the most recent 6.
Description of the change
If a user multiple authenticated sessions, remove all but the most recent 6.
Also, pull out extra_prune_clause from the BulkPruner, as it is currently only useful for pathalogical cases that don't really matter and it broke our end of loop detection (if all items of a batch are skipped due to the extra_prune_clause, then no rows would be deleted and the task would terminate). It would be possible to support this, but it will require refactoring and perform worse.
To post a comment you must log in.