Merge lp://staging/~bac/launchpad/bug-524302 into lp://staging/launchpad/db-devel
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp://staging/~bac/launchpad/bug-524302 |
Merge into: | lp://staging/launchpad/db-devel |
Prerequisite: | lp://staging/~bac/launchpad/productseries-js |
Diff against target: |
1830 lines (+1077/-379) 23 files modified
lib/lp/app/templates/base-layout-macros.pt (+5/-2) lib/lp/code/browser/bazaar.py (+3/-1) lib/lp/code/browser/branch.py (+3/-2) lib/lp/code/browser/configure.zcml (+0/-7) lib/lp/code/interfaces/codeimport.py (+0/-10) lib/lp/code/javascript/tests/test_productseries_setbranch.js (+3/-3) lib/lp/code/model/codeimport.py (+1/-49) lib/lp/code/model/tests/test_codeimport.py (+0/-194) lib/lp/code/stories/branches/xx-bazaar-home.txt (+1/-1) lib/lp/code/stories/branches/xx-branchmergeproposals.txt (+4/-1) lib/lp/code/stories/branches/xx-propose-for-merging.txt (+2/-0) lib/lp/code/stories/codeimport/xx-codeimport-list.txt (+0/-72) lib/lp/code/stories/codeimport/xx-codeimport-view.txt (+3/-3) lib/lp/code/templates/bazaar-index.pt (+1/-1) lib/lp/code/templates/branchmergeproposal-pagelet-summary.pt (+4/-0) lib/lp/registry/browser/configure.zcml (+7/-0) lib/lp/registry/browser/productseries.py (+380/-24) lib/lp/registry/browser/tests/productseries-setbranch-view.txt (+339/-0) lib/lp/registry/stories/productseries/xx-productseries-set-branch.txt (+147/-0) lib/lp/registry/templates/productseries-codesummary.pt (+3/-3) lib/lp/registry/templates/productseries-linkbranch.pt (+38/-2) lib/lp/registry/templates/productseries-setbranch.pt (+129/-0) lib/lp/testing/factory.py (+4/-4) |
To merge this branch: | bzr merge lp://staging/~bac/launchpad/bug-524302 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code, ui | Approve | |
Edwin Grubbs (community) | code ui* | Approve | |
Review via email: mp+22180@code.staging.launchpad.net |
Commit message
Create a productseries/
Description of the change
Add productseries/
The view is not currently navigable from anywhere. Eventually it will replace +linkbranch.
A new view test has been created:
bin/test -vvt productseries-
It may be preferred to roll that test into the productseries-
There are some known issues listed in the BRANCH.TODO file.
To demo, create a new project and go to https:/
Hi Brad,
This interface is a nice improvement. I've only set the series for a
branch once before, and I totally did it wrong because I was on the wrong
form.
Since I don't know if you are planning a followup branch for your
BRANCH.TODO items, I'm marking this:
needs-fixing
It seems odd that productseries- setbranch. pt is in lp.registry but setbranch. js is in lp.code. There are some more
productseries-
comments below.
-Edwin
>=== modified file 'BRANCH.TODO' dev/proj/ series displays the overview page but it should registry/ browser/ productseries. py' registry/ browser/ productseries. py 2010-03-23 00:39:45 +0000 registry/ browser/ productseries. py 2010-03-26 15:28:25 +0000 url(product) nkBranchView( LaunchpadEditFo rmView) : ocabulary( ): y(terms)
>--- BRANCH.TODO 2010-03-19 07:13:15 +0000
>+++ BRANCH.TODO 2010-03-26 15:28:25 +0000
>@@ -2,3 +2,10 @@
> # landing. There is a test to ensure it is empty in trunk. If there is
> # stuff still here when you are ready to land, the items should probably
> # be converted to bugs so they can be scheduled.
>+
>+TODO:
>+
>+* validation errors give misleading messages
>+* uncaught constraint error on duplicate of code import URL
>+* code.lp.
>+ direct away from the code vhost
>=== modified file 'lib/lp/
>--- lib/lp/
>+++ lib/lp/
>@@ -644,7 +658,340 @@
> self.next_url = canonical_
>
>
>-class ProductSeriesLi
>+LINK_LP_BZR = 'link-lp-bzr'
>+CREATE_NEW = 'create-new'
>+IMPORT_EXTERNAL = 'import-external'
>+
>+
>+def _getBranchTypeV
>+ items = (
>+ (LINK_LP_BZR,
>+ _("Link to a Bazaar branch already on Launchpad")),
>+ (CREATE_NEW,
>+ _("Create a new, empty branch in Launchpad and "
>+ "link to this series")),
>+ (IMPORT_EXTERNAL,
>+ _("Import a branch hosted somewhere else")),
>+ )
>+ terms = [
>+ SimpleTerm(name, name, label) for name, label in items]
>+ return SimpleVocabular
Why is this a function instead of a constant? If you are TYPE_VOCABULARY = SimpleVocabulary(( m(LINK_ LP_BZR, LINK_LP_BZR, 'foo'),
trying to avoid extra variables defined in the module, you could
just do:
BRANCH_
SimpleTer
...
>+class RevisionControl SystemsExtended (RevisionContro lSystems) : Interface) : title=_ ("Type of RCS"), RevisionControl SystemsExtended , schemes= ["http" , "https"], False, False, slash=False) 'branch' ], _='branch_ location' ,
>+ """External RCS plus Bazaar."""
>+ BZR = DBItem(99, """
>+ Bazaar
>+
>+ External Bazaar branch.
>+ """)
>+
>+
>+class SetBranchForm(
>+ """The fields presented on the form for setting a branch."""
>+
>+ use_template(
>+ ICodeImport,
>+ ['cvs_module'])
>+
>+ rcs_type = Choice(
>+ required=False, vocabulary=
>+ description=_(
>+ "The version control system to import from. "))
>+
>+ repo_url = URIField(
>+ title=_("Branch URL"), required=True,
>+ description=_("The URL of the branch."),
>+ allowed_
>+ allow_userinfo=
>+ allow_port=True,
>+ allow_query=False,
>+ allow_fragment=
>+ trailing_
>+
>+ branch_location = copy_field(
>+ IProductSeries[
>+ __name_
>+ titl...