Merge lp:~intellectronica/launchpad/expectations-bug-556499-schema into lp:launchpad/db-devel

Proposed by Eleanor Berger
Status: Merged
Approved by: Eleanor Berger
Approved revision: no longer in the source branch.
Merged at revision: 9382
Proposed branch: lp:~intellectronica/launchpad/expectations-bug-556499-schema
Merge into: lp:launchpad/db-devel
Diff against target: 59 lines (+23/-0)
2 files modified
database/schema/comments.sql (+7/-0)
database/schema/patch-2207-55-0.sql (+16/-0)
To merge this branch: bzr merge lp:~intellectronica/launchpad/expectations-bug-556499-schema
Reviewer Review Type Date Requested Status
Stuart Bishop (community) db Approve
Björn Tillenius (community) db Approve
Review via email: mp+25512@code.launchpad.net

Commit message

DB schema patch for adding a bugtarget bug_acknowledgement_message field.

Description of the change

This is a db schema patch for adding a bug filing acknowledgement message to Distribution, DSP, Product and Project. The bug acknowledgement message is a free text field being displayed to users after they've filed a but, to set their expectations regarding the continuation of the bug's lifecycle.

To post a comment you must log in.
Revision history for this message
Björn Tillenius (bjornt) wrote :

Looks good in general. In the comments for DistributionSourcePackage and Project, it makes sense to say whether their messages will override their parent object's message, or be in addition to it. I.e., what will be displayed if both a Product and the Product's Project have messages set?

Stuart needs to approve the patch as well.

review: Approve
Revision history for this message
Björn Tillenius (bjornt) :
review: Approve (db)
Revision history for this message
Stuart Bishop (stub) wrote :

Fine. patch-2207-55-0.sql

review: Approve (db)

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 2010-04-28 13:58:04 +0000
3+++ database/schema/comments.sql 2010-05-19 12:19:30 +0000
4@@ -473,6 +473,7 @@
5 COMMENT ON TABLE DistributionSourcePackage IS 'Representing a sourcepackage in a distribution across all distribution series.';
6 COMMENT ON COLUMN DistributionSourcePackage.bug_reporting_guidelines IS 'Guidelines to the end user for reporting bugs on a particular a source package in a distribution.';
7 COMMENT ON COLUMN DistributionSourcePackage.max_bug_heat IS 'The highest heat value across bugs for this source package.';
8+COMMENT ON COLUMN DistributionSourcePackage.bug_reported_acknowledgement IS 'A message of acknowledgement to display to a bug reporter after they\'ve reported a new bug.';
9
10 -- DistributionSourcePackageCache
11
12@@ -624,6 +625,8 @@
13 COMMENT ON COLUMN Product.remote_product IS 'The ID of this product on its remote bug tracker.';
14 COMMENT ON COLUMN Product.max_bug_heat IS 'The highest heat value across bugs for this product.';
15 COMMENT ON COLUMN Product.date_next_suggest_packaging IS 'The date when Launchpad can resume suggesting Ubuntu packages that the project provides.';
16+COMMENT ON COLUMN Product.bug_reported_acknowledgement IS 'A message of acknowledgement to display to a bug reporter after they\'ve reported a new bug.';
17+
18
19 -- ProductLicense
20 COMMENT ON TABLE ProductLicense IS 'The licenses that cover the software for a product.';
21@@ -716,6 +719,8 @@
22 COMMENT ON COLUMN Project.bug_reporting_guidelines IS 'Guidelines to the end user for reporting bugs on products in this project.';
23 COMMENT ON COLUMN Project.reviewer_whiteboard IS 'A whiteboard for Launchpad admins, registry experts and the project owners to capture the state of current issues with the project.';
24 COMMENT ON COLUMN Project.max_bug_heat IS 'The highest heat value across bugs for products in this project.';
25+COMMENT ON COLUMN Project.bug_reported_acknowledgement IS 'A message of acknowledgement to display to a bug reporter after they\'ve reported a new bug.';
26+
27
28 -- ProjectRelationship
29 COMMENT ON TABLE ProjectRelationship IS 'Project Relationships. This table stores information about the way projects are related to one another in the open source world. The actual nature of the relationship is stored in the ''label'' field, and possible values are given by the ProjectRelationship enum in dbschema.py. Examples are AGGREGATES ("the Gnome Project AGGREGATES EOG and Evolution and Gnumeric and AbiWord") and SIMILAR ("the Evolution project is SIMILAR to the Mutt project").';
30@@ -980,6 +985,8 @@
31 COMMENT ON COLUMN Distribution.bug_reporting_guidelines IS 'Guidelines to the end user for reporting bugs on this distribution.';
32 COMMENT ON COLUMN Distribution.reviewer_whiteboard IS 'A whiteboard for Launchpad admins, registry experts and the project owners to capture the state of current issues with the project.';
33 COMMENT ON COLUMN Distribution.max_bug_heat IS 'The highest heat value across bugs for this distribution.';
34+COMMENT ON COLUMN Distribution.bug_reported_acknowledgement IS 'A message of acknowledgement to display to a bug reporter after they\'ve reported a new bug.';
35+
36
37 -- DistroSeries
38
39
40=== added file 'database/schema/patch-2207-55-0.sql'
41--- database/schema/patch-2207-55-0.sql 1970-01-01 00:00:00 +0000
42+++ database/schema/patch-2207-55-0.sql 2010-05-19 12:19:30 +0000
43@@ -0,0 +1,16 @@
44+SET client_min_messages=ERROR;
45+
46+ALTER TABLE Distribution
47+ADD COLUMN bug_reported_acknowledgement TEXT;
48+
49+ALTER TABLE DistributionSourcePackage
50+ADD COLUMN bug_reported_acknowledgement TEXT;
51+
52+ALTER TABLE Product
53+ADD COLUMN bug_reported_acknowledgement TEXT;
54+
55+ALTER TABLE Project
56+ADD COLUMN bug_reported_acknowledgement TEXT;
57+
58+INSERT INTO LaunchpadDatabaseRevision VALUES (2207, 55, 0);
59+

Subscribers

People subscribed via source and target branches

to status/vote changes: