Merge lp:~laney/launchpad/db-proposed-not-automatic-pre-release into lp:launchpad/db-devel

Proposed by Iain Lane on 2012-06-26
Status: Merged
Approved by: Benji York on 2012-07-02
Approved revision: no longer in the source branch.
Merged at revision: 11728
Proposed branch: lp:~laney/launchpad/db-proposed-not-automatic-pre-release
Merge into: lp:launchpad/db-devel
Diff against target: 25 lines (+10/-0)
2 files modified
database/schema/comments.sql (+1/-0)
database/schema/patch-2209-25-1.sql (+9/-0)
To merge this branch: bzr merge lp:~laney/launchpad/db-proposed-not-automatic-pre-release
Reviewer Review Type Date Requested Status
Stuart Bishop db 2012-06-26 Approve on 2012-06-27
Robert Collins db 2012-06-26 Pending
Launchpad code reviewers 2012-06-26 Pending
Review via email: mp+112134@code.launchpad.net

Commit Message

Add new column proposed_not_automatic to DistroSeries table. This column indicates whether the -proposed pocket is set NotAutomatic and ButAutomaticUpgrades so that apt does not offer users upgrades into -proposed, but does offer upgrades within it.

Description of the Change

Add new column proposed_not_automatic to DistroSeries table. This is part of fix for bug #1016776 — allow NotAutomatic and ButAutomaticUpgrades to be set for the proposed pocket. It's the supporting column for the flag that will allow distros to enable/disable this feature.

To post a comment you must log in.
Stuart Bishop (stub) wrote :

Hi. Has this been discussed with the core Launchpad team?

The patch itself looks fine. There are few records in distroseries, so adding the column and setting the default value at the same time is fine.

The new column name is horrible. Can anyone come up with a better name?

(15:19:02) wgrant: stub: My suggestion would be to just make it proposed_not_automatic
(15:19:11) wgrant: stub: The pre-release bit can be handled by unsetting the flag on release :)

This suggestion seems a little more flexible, and doesn't encode the release procedure rules in the data store.

I'm not blocking on the name, as we have worse and it indeed may be the best option.

This patch cannot be applied live, so is targeted correctly for landing and deployment during a fast downtime window.

review: Approve (db)
Iain Lane (laney) wrote :

FYI, I mailed launchpad-dev asking what the best way to implement this would be (set based on status or the suggestion in the quoted IRC text of having an admin unset at release time) and am waiting for comments before proceeding: https://lists.launchpad.net/launchpad-dev/msg09509.html.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'database/schema/comments.sql'
2--- database/schema/comments.sql 2012-06-15 05:49:38 +0000
3+++ database/schema/comments.sql 2012-07-02 09:08:31 +0000
4@@ -1151,6 +1151,7 @@
5 COMMENT ON COLUMN DistroSeries.language_pack_delta IS 'Current language pack update based on language_pack_base information.';
6 COMMENT ON COLUMN DistroSeries.language_pack_proposed IS 'Either a full or update language pack being tested to be used in language_pack_base or language_pack_delta.';
7 COMMENT ON COLUMN DistroSeries.language_pack_full_export_requested IS 'Whether next language pack export should be a full export or an update.';
8+COMMENT ON COLUMN DistroSeries.proposed_not_automatic IS 'Whether the -proposed pocket is set NotAutomatic and ButAutomaticUpgrades so that apt does not offer users upgrades into -proposed, but does offer upgrades within it.';
9
10
11 -- PackageCopyJob
12
13=== added file 'database/schema/patch-2209-25-1.sql'
14--- database/schema/patch-2209-25-1.sql 1970-01-01 00:00:00 +0000
15+++ database/schema/patch-2209-25-1.sql 2012-07-02 09:08:31 +0000
16@@ -0,0 +1,9 @@
17+-- Copyright 2012 Canonical Ltd. This software is licensed under the
18+-- GNU Affero General Public License version 3 (see the file LICENSE).
19+
20+SET client_min_messages=ERROR;
21+
22+ALTER TABLE distroseries
23+ ADD COLUMN proposed_not_automatic BOOLEAN NOT NULL DEFAULT FALSE;
24+
25+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 25, 1);

Subscribers

People subscribed via source and target branches

to status/vote changes: