Merge lp://staging/~wallyworld/launchpad/person-mergequeue-listview into lp://staging/launchpad/db-devel
Status: | Superseded |
---|---|
Proposed branch: | lp://staging/~wallyworld/launchpad/person-mergequeue-listview |
Merge into: | lp://staging/launchpad/db-devel |
Prerequisite: | lp://staging/~rockstar/launchpad/merge-queue-index |
Diff against target: |
1125 lines (+922/-8) 14 files modified
lib/lp/code/browser/branchlisting.py (+4/-2) lib/lp/code/browser/branchmergequeuelisting.py (+105/-0) lib/lp/code/browser/configure.zcml (+18/-0) lib/lp/code/browser/tests/test_branchmergequeuelisting.py (+227/-0) lib/lp/code/configure.zcml (+11/-0) lib/lp/code/interfaces/branchmergequeue.py (+14/-0) lib/lp/code/interfaces/branchmergequeuecollection.py (+64/-0) lib/lp/code/model/branchmergequeue.py (+4/-2) lib/lp/code/model/branchmergequeuecollection.py (+174/-0) lib/lp/code/model/tests/test_branchmergequeuecollection.py (+201/-0) lib/lp/code/templates/branchmergequeue-listing.pt (+68/-0) lib/lp/code/templates/branchmergequeue-macros.pt (+20/-0) lib/lp/code/templates/person-codesummary.pt (+8/-1) lib/lp/testing/factory.py (+4/-3) |
To merge this branch: | bzr merge lp://staging/~wallyworld/launchpad/person-mergequeue-listview |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Hummer (community) | ui | Approve | |
Tim Penhey (community) | mentor | Approve | |
Steve Kowalik (community) | code* | Approve | |
Review via email:
|
This proposal has been superseded by a proposal from 2010-11-18.
Commit message
Add person merge queue listing functionality. Work in progress merge queue development.
Description of the change
This branch delivers functionality for the merge queue development project. It adds a person merge queue list view and associated model functionality.
= Implementation =
The usual suspects were developed:
- view implementation class
- page template
- zcml changes
To supply data for the view, an IBranchMergeQue
The merge queue list view shows:
- queue name
- queue size
- queue branches
NB the queue size is hard coded pending the required API being developed for IBranchMergeQueue
The menu to access the merge queue list is including alongside the other person branch menu links.
A feature flag is used to hide this functionality as the whole development effort is still WIP. This branch is sufficiently complete in what it delivers and needs to allow collaboration between separate development efforts.
= Screenshot =
Here's a screenshot of the list page:
http://
= Tests =
bin/test -vvt test_branchmerg
bin/test -vvt test_branchmerg
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
setup.py
versions.cfg
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
./setup.py
131: E202 whitespace before ']'
./lib/lp/
129: 'anonymous_
129: 'with_anonymous
129: 'is_logged_in' imported but unused
148: 'launchpadlib_for' imported but unused
148: 'launchpadlib_
129: 'person_logged_in' imported but unused
148: 'oauth_
129: 'login_celebrity' imported but unused
129: 'with_celebrity
147: 'test_tales' imported but unused
129: 'celebrity_
129: 'run_with_login' imported but unused
129: 'with_person_
129: 'login_team' imported but unused
129: 'login_person' imported but unused
129: 'login_as' imported but unused
429: E301 expected 1 blank line, found 0
861: E301 expected 1 blank line, found 0
887: E302 expected 2 blank lines, found 1
963: E302 expected 2 blank lines, found 1
Process finished with exit code 0
Adding back comments from old incorrect merge proposal:
SteveK wrote:
Hi Ian,
Firstly, thanks for this awesome work! I've been looking forward to Merge Queues for a while.
I have some comments below:
* 1,500 lines? Why!? I'd suggest in future you look at splitting up work into two separate branches for plumbing and browser code, for example. IStoreSelector) , which is deprecated-ish
* import with_statement isn't needed any more, we're on Python 2.6!
* I'd suggest you run the import formatter over your branch.
* Why use Star Wars names in the tests, I'd prefer descriptive names, such as self.branch_owner, which is less distracting.
* You should use XXX, rather than TODO, and file a bug per the XXX Policy.
* getUtility can be imported from zope.component directly, and indeed you mostly are, except in one place.
* Investigate usage of IMasterStore, rather than getUtility(
* You're adding BeautifulSoup and soupmatchers to setup.py and versions.cfg, I'd suggest that get split out into an earlier branch so you can be certain they are available before landing this one.