Send modification events from createProductRelease()
----------------------------------------------------
When a release is created from a milestone all the fix committed bugs are
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.createProductRelease().
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.
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.