launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #31914
[Merge] ~alvarocs/launchpad:fix-doctests-content_templates into launchpad:master
Alvaro Crespo Serrano has proposed merging ~alvarocs/launchpad:fix-doctests-content_templates into launchpad:master.
Commit message:
Update doc files for content templates
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~alvarocs/launchpad/+git/launchpad/+merge/477348
Remove 'content_templates' from registry/stories/webservice doc files as it is not exported to the API.
Include XXX comment on 'content_templates' field definition to mention this.
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~alvarocs/launchpad:fix-doctests-content_templates into launchpad:master.
diff --git a/lib/lp/bugs/interfaces/bugtarget.py b/lib/lp/bugs/interfaces/bugtarget.py
index aae3302..2415010 100644
--- a/lib/lp/bugs/interfaces/bugtarget.py
+++ b/lib/lp/bugs/interfaces/bugtarget.py
@@ -276,6 +276,8 @@ class IBugTarget(IHasBugs):
)
)
+ # XXX alvarocs 2024-11-27:
+ # To be exported to the API once a validator is added.
content_templates = Dict(
title=("Templates to use for reporting a bug"),
description=(
diff --git a/lib/lp/registry/interfaces/projectgroup.py b/lib/lp/registry/interfaces/projectgroup.py
index fdb4254..0b39dc4 100644
--- a/lib/lp/registry/interfaces/projectgroup.py
+++ b/lib/lp/registry/interfaces/projectgroup.py
@@ -384,6 +384,8 @@ class IProjectGroupPublic(
)
)
+ # XXX alvarocs 2024-11-27:
+ # To be exported to the API once a validator is added.
content_templates = Dict(
title=("Templates to use for reporting a bug"),
description=(
diff --git a/lib/lp/registry/stories/webservice/xx-distribution-source-package.rst b/lib/lp/registry/stories/webservice/xx-distribution-source-package.rst
index 28e602d..a848237 100644
--- a/lib/lp/registry/stories/webservice/xx-distribution-source-package.rst
+++ b/lib/lp/registry/stories/webservice/xx-distribution-source-package.rst
@@ -16,7 +16,6 @@ Source packages can be obtained from the context of a distribution.
bug_reporting_guidelines: None
display_name: 'mozilla-firefox in Debian'
distribution_link: 'http://.../debian'
- content_templates: None
name: 'mozilla-firefox'
official_bug_tags: []
resource_type_link: 'http://.../#distribution_source_package'
diff --git a/lib/lp/registry/stories/webservice/xx-distribution.rst b/lib/lp/registry/stories/webservice/xx-distribution.rst
index 4716a20..1d9a8e9 100644
--- a/lib/lp/registry/stories/webservice/xx-distribution.rst
+++ b/lib/lp/registry/stories/webservice/xx-distribution.rst
@@ -45,7 +45,6 @@ And for every distribution we publish most of its attributes.
icon_link: 'http://.../ubuntu/icon'
information_type: 'Public'
logo_link: 'http://.../ubuntu/logo'
- content_templates: None
main_archive_link: 'http://.../ubuntu/+archive/primary'
members_link: 'http://.../~ubuntu-team'
mirror_admin_link: 'http://.../~ubuntu-mirror-admins'
diff --git a/lib/lp/registry/stories/webservice/xx-distroseries.rst b/lib/lp/registry/stories/webservice/xx-distroseries.rst
index f9c9b70..51a089a 100644
--- a/lib/lp/registry/stories/webservice/xx-distroseries.rst
+++ b/lib/lp/registry/stories/webservice/xx-distroseries.rst
@@ -86,7 +86,6 @@ For distroseries we publish a subset of its attributes.
include_long_descriptions: True
index_compressors: ['gzip', 'bzip2']
language_pack_full_export_requested: False
- content_templates: None
main_archive_link: 'http://.../ubuntu/+archive/primary'
name: 'hoary'
nominatedarchindep_link: 'http://.../ubuntu/hoary/i386'
diff --git a/lib/lp/registry/stories/webservice/xx-person.rst b/lib/lp/registry/stories/webservice/xx-person.rst
index 49634ac..7e93f8b 100644
--- a/lib/lp/registry/stories/webservice/xx-person.rst
+++ b/lib/lp/registry/stories/webservice/xx-person.rst
@@ -815,7 +815,6 @@ Subscribed packages can be listed with getBugSubscriberPackages:
bug_reporting_guidelines: None
display_name: '...'
distribution_link: '...'
- content_templates: None
name: 'fooix'
official_bug_tags: []
resource_type_link: '...'
diff --git a/lib/lp/registry/stories/webservice/xx-project-registry.rst b/lib/lp/registry/stories/webservice/xx-project-registry.rst
index 006ca00..37b1061 100644
--- a/lib/lp/registry/stories/webservice/xx-project-registry.rst
+++ b/lib/lp/registry/stories/webservice/xx-project-registry.rst
@@ -88,7 +88,6 @@ host.
homepage_url: 'http://www.mozilla.org/'
icon_link: 'http://.../mozilla/icon'
logo_link: 'http://.../mozilla/logo'
- content_templates: None
mugshot_link: 'http://.../mozilla/mugshot'
name: 'mozilla'
official_bug_tags: []
@@ -194,7 +193,6 @@ Projects are available at their canonical URL on the API virtual host.
license_info: None
licenses: ['MIT / X / Expat Licence']
logo_link: 'http://.../firefox/logo'
- content_templates: None
name: 'firefox'
official_answers: True
official_blueprints: False
@@ -847,7 +845,6 @@ virtual host.
display_name: 'foobadoo'
driver_link: None
drivers_collection_link: 'http://.../babadoo/foobadoo/drivers'
- content_templates: None
name: 'foobadoo'
official_bug_tags: []
owner_link: 'http://.../~babadoo-owner'
diff --git a/lib/lp/registry/stories/webservice/xx-source-package.rst b/lib/lp/registry/stories/webservice/xx-source-package.rst
index 3decfc9..d09785d 100644
--- a/lib/lp/registry/stories/webservice/xx-source-package.rst
+++ b/lib/lp/registry/stories/webservice/xx-source-package.rst
@@ -36,7 +36,6 @@ distribution series.
distribution_link: 'http://.../my-distro'
distroseries_link: 'http://.../my-distro/my-series'
latest_published_component_name: None
- content_templates: None
name: 'evolution'
official_bug_tags: []
productseries_link: None