has_existing_ppa and has_ppa_with_published_packages should not be on IPerson

Bug #693357 reported by Julian Edwards
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Brad Crittenden

Bug Description

has_existing_ppa and has_ppa_with_published_packages should not be properties on IPerson, they should be on IArchiveSet so
that Soyuz-specific queries are kept in the lp.soyuz domain.

The Bugs team made this mistake with one of their bits of code that knows too much about Soyuz publishing tables and caused circular imports when running bin/test. It also makes future changes to Soyuz code harder because the developer will not expect this sort of code to be outside the Soyuz domain.

I recommend:
 IPerson.has_existing_ppa -> IArchiveSet.getPPAOwnedByPerson() modified to take an optional status.
 IPerson.has_ppa_with_published_packages -> ArchiveSet.getPPAOwnedByPerson() modified to take an optional "has_packages" flag.

Related branches

tags: added: tech-debt
Curtis Hovey (sinzui)
Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
tags: added: ppa users
Changed in launchpad:
importance: Low → High
tags: added: lp-soyuz
Brad Crittenden (bac)
Changed in launchpad:
assignee: nobody → Brad Crittenden (bac)
Brad Crittenden (bac)
Changed in launchpad:
status: Triaged → In Progress
Curtis Hovey (sinzui)
Changed in launchpad:
milestone: none → 11.01
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Brad Crittenden (bac)
tags: added: qa-ok
removed: qa-needstesting
Curtis Hovey (sinzui)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.