Merge lp://staging/~bryce/launchpad/lp-617679-db into lp://staging/launchpad/db-devel
Status: | Merged |
---|---|
Approved by: | Bryce Harrington |
Approved revision: | no longer in the source branch. |
Merged at revision: | 9805 |
Proposed branch: | lp://staging/~bryce/launchpad/lp-617679-db |
Merge into: | lp://staging/launchpad/db-devel |
Diff against target: |
68 lines (+53/-0) 2 files modified
database/schema/comments.sql (+15/-0) database/schema/patch-2208-09-0.sql (+38/-0) |
To merge this branch: | bzr merge lp://staging/~bryce/launchpad/lp-617679-db |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | db | Approve | |
Robert Collins (community) | database | Approve | |
Review via email: mp+34321@code.staging.launchpad.net |
Commit message
New tables for mapping upstream components to source packages.
Description of the change
This branch is a foundation for changes to add support for mapping additional form data for external bug trackers, in order to simplify the process of forwarding bug reports upstream.
Specifically, it adds tables for components and component groups (aka 'products' in bugzilla). A bug tracker can have one or many component groups, and each component group can have any number of components. Components are the equivalent to distro source packages, and we allow linkages to be made between them.
These tables will be filled via a daily cron script that retrieves the data from the upstream bug trackers. Users can add to or delete items as well. The is_custom flag allows marking user-added items (which should not be removed by the cron job). The is_active flag allows the user to disable/hide synced components which are not relevant.
pre-implementation and mid-implementation discussions of this feature were done with Deryck and Graham.
The branch has passed 'make schema', and I've verified the patch applies. I've run it through ec2 test successfully as well.
Tests started at approximately Wed, 01 Sep 2010 18:27:10 UTC
bzr+ssh:
Merged with
bzr+ssh:
OMMENT ON COLUMN BugTrackerCompo nent.is_ active IS 'Whether to display or hide the item in the Launchpad user interface.';
perhaps is_shown, if that is what you mean.
If you mean that bugwatches etc will ignore it in future, then the comment is wrong. Either way something is mismatched.
I don't parse ." Some bug trackers do not group components thus all BugTrackerCompo nents will belong to a default componentgroup.';" easily; could you consider expanding or rephrasing. For instance, do you mean 'one default componentgroup for all trackers'.
source_ package- >distro_ source_ package please, for clarity
If these are going to be shown in LP, and traversed to, they have to have a constraint on the name to match our url restrictions; if they aren't, then you may have some difficulty writing uis for them. If the contstraint will conflict with external names (e.g. someone has a component called Foo and the capital letter matters), then you need two fields: a field for LP to use and a field for the external tracker. (Or, don't ever traverse to these things in the web UI/API).