Merge lp:~james-w/launchpad/nuke-code-import-warts into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Michael Hudson-Doyle on 2010-03-17 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | not available |
| Proposed branch: | lp:~james-w/launchpad/nuke-code-import-warts |
| Merge into: | lp:launchpad |
| Prerequisite: | lp:~james-w/launchpad/export-code-import |
| Diff against target: |
217 lines (+24/-48) 8 files modified
Makefile (+1/-1) lib/lp/code/browser/codeimport.py (+12/-5) lib/lp/code/interfaces/codeimport.py (+0/-21) lib/lp/code/mail/codeimport.py (+2/-2) lib/lp/code/model/codeimport.py (+0/-10) lib/lp/code/model/tests/test_codeimport.py (+5/-5) lib/lp/code/templates/codeimport-list.pt (+2/-2) lib/lp/code/templates/sources-list.pt (+2/-2) |
| To merge this branch: | bzr merge lp:~james-w/launchpad/nuke-code-import-warts |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Tim Penhey (community) | Approve on 2010-03-18 | ||
| Michael Hudson-Doyle | 2010-03-17 | Approve on 2010-03-17 | |
|
Review via email:
|
|||
Commit Message
Some attributes have been removed from ICodeImport in favour of accessing ICodeImport.branch.
Description of the Change
Hi,
This deletes some unneeded things from ICodeImport.
owner, assignee and series were all unused, so we drop them
from the interface. The former two are still in the model as they
are in the db, and we still set owner as it has a non-NULL constraint.
If that's the wrong choice then I will need some assistance in
dropping them from the db or dropping the constraint.
product is used, but it's bad form to expose it directly. The code
import doesn't actually need to know, and furthermore, we would like
to support non-project imports one day. The interface for that is IBranchTarget,
so calling code should just use code_import.
Thanks,
James

Yay, all looks good to me.