Merge lp:~edwin-grubbs/launchpad/bug-535430-needspackaging-timeout-part1 into lp:launchpad/db-devel
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 9449 | ||||
Proposed branch: | lp:~edwin-grubbs/launchpad/bug-535430-needspackaging-timeout-part1 | ||||
Merge into: | lp:launchpad/db-devel | ||||
Diff against target: |
45 lines (+29/-1) 2 files modified
database/schema/comments.sql (+5/-1) database/schema/patch-2207-56-0.sql (+24/-0) |
||||
To merge this branch: | bzr merge lp:~edwin-grubbs/launchpad/bug-535430-needspackaging-timeout-part1 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | db | Approve | |
Björn Tillenius (community) | db | Approve | |
Review via email: mp+25359@code.launchpad.net |
Description of the change
This branch adds the following columns the DistributionSou
total_bug_heat INTEGER
bug_count INTEGER
po_
section INTEGER REFERENCES Section(id)
This table will be used to cache data so the $distroseries/
page won't timeout. A DistributionSou
packages with a SourcePackagePu
The section will be updated by the trigger, since it only needs to be
changed when a new SourcePackagePu
other three columns will be populated by a cronjob.
The total_bug_heat differs from the existing max_bug_heat column in that
the max_bug_heat column is the highest heat value for a single bug related
to the package, and the total_bug_heat is the sum of all the bugs related
to the package.
After talking with Julian, I have removed the trigger. Updating the DistributionSou rcePackage table when a new SourcePackagePu blishingHistory record is added will instead be handled in lp.soyuz. model.publishin g.PublishingSet .newSourcePubli cation( ).