Merge ~cjwatson/launchpad:remove-hwdb-person into launchpad:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: 36505e4aacc8fab2fb9ebe3b67a50c5215e7899d
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad:remove-hwdb-person
Merge into: launchpad:master
Diff against target: 68 lines (+0/-17)
4 files modified
lib/lp/_schema_circular_imports.py (+0/-2)
lib/lp/registry/interfaces/person.py (+0/-5)
lib/lp/registry/model/person.py (+0/-6)
lib/lp/registry/stories/webservice/xx-person.txt (+0/-4)
Reviewer Review Type Date Requested Status
Ioana Lasc (community) Approve
Review via email: mp+389983@code.launchpad.net

Commit message

Remove Person.hardware_submissions

Description of the change

We're in the process of removing the disused hardware database. Remove the ability to fetch hardware submissions associated with a person via the webservice API.

To post a comment you must log in.
Revision history for this message
Ioana Lasc (ilasc) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/lib/lp/_schema_circular_imports.py b/lib/lp/_schema_circular_imports.py
2index 7e0a047..ad2f85b 100644
3--- a/lib/lp/_schema_circular_imports.py
4+++ b/lib/lp/_schema_circular_imports.py
5@@ -342,8 +342,6 @@ patch_collection_return_type(IPerson, 'getOwnedProjects', IProduct)
6 # IHasRecipe
7 patch_collection_property(IHasRecipes, 'recipes', ISourcePackageRecipe)
8
9-patch_collection_property(IPerson, 'hardware_submissions', IHWSubmission)
10-
11 # publishing.py
12 patch_collection_return_type(
13 ISourcePackagePublishingHistoryPublic, 'getBuilds', IBinaryPackageBuild)
14diff --git a/lib/lp/registry/interfaces/person.py b/lib/lp/registry/interfaces/person.py
15index 273b50b..754a920 100644
16--- a/lib/lp/registry/interfaces/person.py
17+++ b/lib/lp/registry/interfaces/person.py
18@@ -1005,11 +1005,6 @@ class IPersonViewRestricted(IHasBranches, IHasSpecifications,
19 readonly=True, required=False,
20 value_type=Reference(schema=Interface)))
21
22- hardware_submissions = exported(CollectionField(
23- title=_("Hardware submissions"),
24- readonly=True, required=False,
25- value_type=Reference(schema=Interface))) # HWSubmission
26-
27 administrated_teams = Attribute(
28 u"the teams that this person/team is an administrator of.")
29
30diff --git a/lib/lp/registry/model/person.py b/lib/lp/registry/model/person.py
31index 5917c6e..8eb34c1 100644
32--- a/lib/lp/registry/model/person.py
33+++ b/lib/lp/registry/model/person.py
34@@ -3129,12 +3129,6 @@ class Person(
35 return False
36
37 @property
38- def hardware_submissions(self):
39- """See `IPerson`."""
40- from lp.hardwaredb.model.hwdb import HWSubmissionSet
41- return HWSubmissionSet().search(owner=self)
42-
43- @property
44 def recipes(self):
45 """See `IHasRecipes`."""
46 from lp.code.model.sourcepackagerecipe import SourcePackageRecipe
47diff --git a/lib/lp/registry/stories/webservice/xx-person.txt b/lib/lp/registry/stories/webservice/xx-person.txt
48index 8fcc0fd..a70885a 100644
49--- a/lib/lp/registry/stories/webservice/xx-person.txt
50+++ b/lib/lp/registry/stories/webservice/xx-person.txt
51@@ -20,8 +20,6 @@ for teams (as they're defined in the ITeam interface).
52 display_name: u'Guilherme Salgado'
53 expired_members_collection_link: u'http://.../~salgado/expired_members'
54 gpg_keys_collection_link: u'http://.../~salgado/gpg_keys'
55- hardware_submissions_collection_link:
56- u'http://.../~salgado/hardware_submissions'
57 hide_email_addresses: False
58 homepage_content: None
59 invited_members_collection_link: u'http://.../~salgado/invited_members'
60@@ -79,8 +77,6 @@ for teams (as they're defined in the ITeam interface).
61 expired_members_collection_link:
62 u'http://.../~ubuntu-team/expired_members'
63 gpg_keys_collection_link: u'http://.../~ubuntu-team/gpg_keys'
64- hardware_submissions_collection_link:
65- u'http://.../~ubuntu-team/hardware_submissions'
66 hide_email_addresses: False
67 homepage_content: None
68 invited_members_collection_link:

Subscribers

People subscribed via source and target branches

to status/vote changes: