Merge lp:~jml/launchpad/commercial-means-shut-up into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Brad Crittenden on 2012-05-04 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 15209 | ||||
| Proposed branch: | lp:~jml/launchpad/commercial-means-shut-up | ||||
| Merge into: | lp:launchpad | ||||
| Prerequisite: | lp:~jml/launchpad/drop-special-commercial-permissions | ||||
| Diff against target: |
532 lines (+109/-73) 15 files modified
lib/lp/registry/interfaces/person.py (+5/-2) lib/lp/registry/model/person.py (+4/-3) lib/lp/soyuz/browser/archive.py (+16/-6) lib/lp/soyuz/configure.zcml (+4/-3) lib/lp/soyuz/interfaces/archive.py (+15/-6) lib/lp/soyuz/mail/notifications.py (+4/-3) lib/lp/soyuz/model/archive.py (+17/-7) lib/lp/soyuz/stories/ppa/xx-ppa-workflow.txt (+9/-7) lib/lp/soyuz/stories/webservice/xx-archive-commercial.txt (+2/-1) lib/lp/soyuz/stories/webservice/xx-archive.txt (+5/-5) lib/lp/soyuz/tests/test_archive.py (+13/-18) lib/lp/soyuz/tests/test_archive_privacy.py (+2/-1) lib/lp/soyuz/tests/test_archive_subscriptions.py (+1/-1) lib/lp/soyuz/tests/test_person_createppa.py (+6/-5) lib/lp/testing/factory.py (+6/-5) |
||||
| To merge this branch: | bzr merge lp:~jml/launchpad/commercial-means-shut-up | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brad Crittenden (community) | code | 2012-05-04 | Approve on 2012-05-04 |
|
Review via email:
|
|||
Commit Message
Rename IArchive.commercial to IArchive.
Description of the Change
This branch renames the 'commercial' attribute on 'IArchive' to 'suppress_
We don't do any queries across the attribute in Launchpad, so we're good there. Ubuntu Software Centre is the only user, and they (currently) don't even use it at an API level, so we're good for backwards compatibility.
Thus, we can un-expose 'commercial' and forbid any access to the attribute in code.
Future patches will:
- rename the column in the db
- change the permissions so that PPA owners (& any PPA creator) can change the attribute
- (possibly) migrate from boolean to an enum
Adds 36 lines, reducing us to 102 lines of credit.
Thanks,
jml
| James Westby (james-w) wrote : | # |
| Brad Crittenden (bac) wrote : | # |
Hi Jono,
* In lib/lp/
* On IRC we discussed backwards compatibility and you explained nothing in 1.0 or previous has changed. Thanks.
Thanks for the attentiveness and general cleanup you made.
| Jonathan Lange (jml) wrote : | # |
I'm going to be offline for a while. If there are any test failures with this branch, please forward them to James Westby, who will be carrying on this work.

Hi,
This change looks ok to me.
Mentioning the fact that it is only valid for private PPAs in the docstrings
might be useful in helping people understand the point, or avoiding them
learning the hard way by hitting the validatePPA check.
Thanks,
James