Merge lp:~stevenk/launchpad/local-codeimports-bad into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Steve Kowalik on 2012-11-07 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 16245 | ||||
| Proposed branch: | lp:~stevenk/launchpad/local-codeimports-bad | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
382 lines (+74/-74) 7 files modified
lib/lp/code/browser/codeimport.py (+26/-24) lib/lp/code/enums.py (+5/-0) lib/lp/code/model/codeimport.py (+3/-6) lib/lp/code/stories/codeimport/xx-create-codeimport.txt (+13/-0) lib/lp/registry/browser/productseries.py (+12/-37) lib/lp/registry/browser/tests/productseries-setbranch-view.txt (+13/-3) lib/lp/translations/browser/tests/productseries-views.txt (+2/-4) |
||||
| To merge this branch: | bzr merge lp:~stevenk/launchpad/local-codeimports-bad | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Ian Booth (community) | 2012-11-07 | Approve on 2012-11-07 | |
|
Review via email:
|
|||
Commit Message
Deny creation of a code import if it is for a launchpad.net URL.
Description of the Change
Deny creation of a code import if it is for a launchpad.net URL. I have refactored the portion of the validation method for both ProductSeries:
I have also forced this branch to net-neutral by performing a bunch of whitespace cleanup as well as defining a new code enum, much like the same thing we did with PUBLIC_
This branch does not completely close the bug, since it can still occur after this lands. The next step is to clean up the production data.

Looks good. I like the refactoring.