Merge lp:~gmb/launchpad/add-calculatebugheatjobs-bug-510876 into lp:launchpad/db-devel
Proposed by
Graham Binns
Status: | Merged |
---|---|
Approved by: | Deryck Hodge |
Approved revision: | not available |
Merged at revision: | not available |
Proposed branch: | lp:~gmb/launchpad/add-calculatebugheatjobs-bug-510876 |
Merge into: | lp:launchpad/db-devel |
Diff against target: |
352 lines (+158/-11) 5 files modified
database/schema/security.cfg (+10/-0) lib/lp/bugs/configure.zcml (+1/-0) lib/lp/bugs/model/bug.py (+20/-0) lib/lp/bugs/scripts/bugheat.py (+0/-7) lib/lp/bugs/tests/test_bugheat.py (+127/-4) |
To merge this branch: | bzr merge lp:~gmb/launchpad/add-calculatebugheatjobs-bug-510876 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Deryck Hodge (community) | code | Approve | |
Review via email: mp+17895@code.launchpad.net |
Commit message
Relevant changes to a bug will now add CalculateBugHea
To post a comment you must log in.
This branch updates the Bug model so that changes to a Bug add tJobs to the job queue.
CalculateBugHea
We've made changes in the following files:
=== lib/lp/ bugs/configure. zcml ===
- We've added IBugJob as an allowed interface for CalculateBugHeatJob
so that we can access it as a BugJob.
=== lib/lp/ bugs/interfaces /bugjob. py ===
- We've fixed some lint by adding IBugJobSource to the modules __all__.
=== lib/lp/ bugs/model/ bug.py ===
- We've added job creation code for the following events: related and private, and uses the BugChange API, which is
- Subscriptions and unsubscriptions
- Marking a user as affected or unaffected
- Marking or unmarking a bug as a duplicate
- Generic changes to the bug's attributes (this includes
security_
tested elsewhere).
=== lib/lp/ bugs/scripts/ bugheat. py ===
- We've removed some unused imports.
=== lib/lp/ bugs/tests/ test_bugheat. py ===
- We've added unit tests for the above event-driven job creation code.