Merge lp:~james-w/launchpad/nuke-code-import-warts into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Michael Hudson-Doyle |
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 | ||
Michael Hudson-Doyle | Approve | ||
Review via email: mp+21587@code.launchpad.net |
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.