Merge lp:~cjwatson/launchpad/db-pocket-permissions into lp:launchpad/db-devel
| Status: | Merged |
|---|---|
| Approved by: | Richard Harding on 2012-05-17 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 11604 |
| Proposed branch: | lp:~cjwatson/launchpad/db-pocket-permissions |
| Merge into: | lp:launchpad/db-devel |
| Diff against target: |
18 lines (+14/-0) 1 file modified
database/schema/patch-2209-18-1.sql (+14/-0) |
| To merge this branch: | bzr merge lp:~cjwatson/launchpad/db-pocket-permissions |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Stuart Bishop | db | 2012-05-17 | Approve on 2012-05-17 |
| Robert Collins | db | 2012-05-17 | Pending |
|
Review via email:
|
|||
This proposal supersedes a proposal from 2012-05-17.
Commit Message
Add ArchivePermissi
Description of the Change
== Summary ==
Bug 914779 requests per-pocket upload permissions. This is tied in with getting rid of archive admin shell access, as one of the steps there involves sorting out the ubuntu-security team's processes and they currently rely on all sorts of weird hacks, including a celebrity, to make sure they can publish security updates in a timely fashion; it would also make life easier for the Ubuntu backporters team.
== Proposed fix ==
This is the DB part of the fix, adding a pocket column to ArchivePermission in more or less the obvious way, and adjusting the constraint to match (we're not interested in any of the cases where you might want intersected permissions such as component+pocket, as far as I can make out). There's some fiddling to sort out the constraint since PostgreSQL lacks MODIFY CONSTRAINT, but wgrant reckons this approach should be OK on a relatively small table such as ArchivePermission.

This looks fine.There are no problems with dropping and recreating the table as there are only 800 rows to check.