Karma and bug activity missing when bugs are updated by creating a release

Bug #512182 reported by Curtis Hovey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Unassigned

Bug Description

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(). The loop of bugtasks must use snapshot and ObjectModifiedEvent to ensure the subscribers are notified.

        for bugtask in self.open_bugtasks:
            if bugtask.status == BugTaskStatus.FIXCOMMITTED:
                original_bugtask = Snapshot(
                    bugtask, providing=providedBy(bugtask))
                bugtask.transitionToStatus(BugTaskStatus.FIXRELEASED, owner)
                ObjectModifiedEvent(
                    object=bugtask, object_before_modification=original_bugtask,
                    edited_fields=['status']))

Tags: lp-registry

Related branches

Curtis Hovey (sinzui)
description: updated
Curtis Hovey (sinzui)
Changed in launchpad-registry:
status: Triaged → In Progress
Curtis Hovey (sinzui)
tags: added: current-rollout-blocker
Curtis Hovey (sinzui)
tags: removed: current-rollout-blocker
Changed in launchpad-registry:
milestone: 10.01 → 10.02
Curtis Hovey (sinzui)
Changed in launchpad-registry:
milestone: 10.02 → 10.01
Revision history for this message
Curtis Hovey (sinzui) wrote :

Fixed in db-devel r8931.

Changed in launchpad-registry:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in launchpad-registry:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui)
Changed in launchpad:
assignee: Curtis Hovey (sinzui) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.