Merge lp:~sinzui/launchpad/release-bugtask-bug-512182 into lp:launchpad/db-devel
Proposed by
Curtis Hovey
Status: | Merged |
---|---|
Approved by: | Edwin Grubbs |
Approved revision: | not available |
Merged at revision: | not available |
Proposed branch: | lp:~sinzui/launchpad/release-bugtask-bug-512182 |
Merge into: | lp:launchpad/db-devel |
Diff against target: |
55 lines (+20/-4) 2 files modified
lib/lp/registry/doc/milestone.txt (+18/-3) lib/lp/registry/model/milestone.py (+2/-1) |
To merge this branch: | bzr merge lp:~sinzui/launchpad/release-bugtask-bug-512182 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gary Poster (community) | rc | Approve | |
Edwin Grubbs | code | Pending | |
Review via email: mp+17999@code.launchpad.net |
To post a comment you must log in.
This is my branch to send modification events from createProductRe lease() .
lp:~sinzui/launchpad/release-bugtask-bug-512182 /bugs.launchpad .net/bugs/ 512182 implementation: no one (where were the antipodeans?)
Diff size: 79
Launchpad bug: https:/
Test command: ./bin/test -vv -t reg.*doc/milestone
Pre-
Target release: 10.01
Send modification events from createProductRe lease() ------- ------- ------- ------- ------- ------- ---
-------
When a release is created from a milestone all the fix committed bugs are createProductRe lease() .
updated to fix released, but the events are not recorded in the bug history,
nor is the assigned engineer awarded karma. The problem is in
Milestone.
Rules
-----
* The loop of bugtasks must use snapshot and ObjectModifiedEvent to
ensure the subscribers are notified.
QA
--
* Create a release on staging from a milestone that has bugs that are
fix committed.
* Verify the bug status change in in the bug history.
* Verify the assigned user was awarded the karma.
Lint
----
Linting changed files: registry/ doc/milestone. txt registry/ model/milestone .py
lib/lp/
lib/lp/
Test
----
* lib/lp/ registry/ doc/milestone. txt
* Added a test to verify that an ObjectModifiedEvent is called for
the updated bugtask.
Implementation
--------------
* lib/lp/ registry/ model/milestone .py ObjectModifiedE vent(.. .))
* Updated the bugtask loop to use notify(
for each bugtask.