Merge ~cjwatson/launchpad:export-official-flags into launchpad:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: 32e103bde393cf83bbb445035ad7186edc3f2e0e
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad:export-official-flags
Merge into: launchpad:master
Diff against target: 71 lines (+24/-12)
3 files modified
lib/lp/app/interfaces/launchpad.py (+16/-12)
lib/lp/registry/stories/webservice/xx-distribution.txt (+4/-0)
lib/lp/registry/stories/webservice/xx-project-registry.txt (+4/-0)
Reviewer Review Type Date Requested Status
Tom Wardill (community) Approve
Review via email: mp+374533@code.launchpad.net

Commit message

Export ILaunchpadUsage official_* flags

For example, this is useful for reconfiguring things like bug tracking
on a large number of projects.

To post a comment you must log in.
Revision history for this message
Tom Wardill (twom) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/lib/lp/app/interfaces/launchpad.py b/lib/lp/app/interfaces/launchpad.py
2index 160da2e..96a2f95 100644
3--- a/lib/lp/app/interfaces/launchpad.py
4+++ b/lib/lp/app/interfaces/launchpad.py
5@@ -115,18 +115,22 @@ class IServiceUsage(Interface):
6
7 class ILaunchpadUsage(Interface):
8 """How the project uses Launchpad."""
9- official_answers = Bool(
10- title=_('People can ask questions in Launchpad Answers'),
11- required=True)
12- official_blueprints = Bool(
13- title=_('This project uses blueprints'), required=True)
14- official_codehosting = Bool(
15- title=_('Code for this project is published in Bazaar branches on'
16- ' Launchpad'),
17- required=True)
18- official_malone = Bool(
19- title=_('Bugs in this project are tracked in Launchpad'),
20- required=True)
21+ official_answers = exported(
22+ Bool(
23+ title=_('People can ask questions in Launchpad Answers'),
24+ required=True))
25+ official_blueprints = exported(
26+ Bool(title=_('This project uses blueprints'), required=True))
27+ official_codehosting = exported(
28+ Bool(
29+ title=_('Code for this project is published in Bazaar branches on'
30+ ' Launchpad'),
31+ required=True))
32+ official_malone = exported(
33+ Bool(
34+ title=_('Bugs in this project are tracked in Launchpad'),
35+ required=True),
36+ exported_as='official_bugs')
37 official_anything = Bool(
38 title=_('Uses Launchpad for something'))
39 enable_bug_expiration = Bool(
40diff --git a/lib/lp/registry/stories/webservice/xx-distribution.txt b/lib/lp/registry/stories/webservice/xx-distribution.txt
41index f8a4d58..1c0ed87 100644
42--- a/lib/lp/registry/stories/webservice/xx-distribution.txt
43+++ b/lib/lp/registry/stories/webservice/xx-distribution.txt
44@@ -44,7 +44,11 @@ And for every distribution we publish most of its attributes.
45 mirror_admin_link: u'http://.../~ubuntu-mirror-admins'
46 mugshot_link: u'http://.../ubuntu/mugshot'
47 name: u'ubuntu'
48+ official_answers: True
49+ official_blueprints: True
50 official_bug_tags: []
51+ official_bugs: True
52+ official_codehosting: False
53 official_packages: True
54 owner_link: u'http://.../~ubuntu-team'
55 redirect_release_uploads: False
56diff --git a/lib/lp/registry/stories/webservice/xx-project-registry.txt b/lib/lp/registry/stories/webservice/xx-project-registry.txt
57index 59ce22b..86f87ec 100644
58--- a/lib/lp/registry/stories/webservice/xx-project-registry.txt
59+++ b/lib/lp/registry/stories/webservice/xx-project-registry.txt
60@@ -177,7 +177,11 @@ Projects are available at their canonical URL on the API virtual host.
61 licenses: [u'MIT / X / Expat Licence']
62 logo_link: u'http://.../firefox/logo'
63 name: u'firefox'
64+ official_answers: True
65+ official_blueprints: False
66 official_bug_tags: []
67+ official_bugs: True
68+ official_codehosting: False
69 owner_link: u'http://.../~name12'
70 private: False
71 private_bugs: False

Subscribers

People subscribed via source and target branches

to status/vote changes: