Merge lp:~wallyworld/launchpad/built-packages-listing into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Ian Booth |
Approved revision: | no longer in the source branch. |
Merged at revision: | 12044 |
Proposed branch: | lp:~wallyworld/launchpad/built-packages-listing |
Merge into: | lp:launchpad |
Diff against target: |
740 lines (+576/-13) 11 files modified
lib/lp/code/browser/configure.zcml (+13/-6) lib/lp/code/browser/recipebuildslisting.py (+42/-0) lib/lp/code/browser/tests/test_recipebuildslisting.py (+89/-0) lib/lp/code/configure.zcml (+19/-0) lib/lp/code/interfaces/recipebuild.py (+27/-0) lib/lp/code/model/recipebuild.py (+178/-0) lib/lp/code/stories/branches/xx-bazaar-home.txt (+24/-3) lib/lp/code/templates/bazaar-index.pt (+6/-0) lib/lp/code/templates/daily-builds-listing.pt (+93/-0) lib/lp/testing/__init__.py (+7/-4) lib/lp/testing/factory.py (+78/-0) |
To merge this branch: | bzr merge lp:~wallyworld/launchpad/built-packages-listing |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Penhey (community) | Approve | ||
Steve Kowalik (community) | code* | Approve | |
Review via email: mp+40634@code.launchpad.net |
Commit message
[r=stevenk,
Description of the change
= Summary =
Bug 671262 - provide a listing of recently built packages from recipes
= Implementation =
URL for new view is http://
A "Recent recipe builds..." link has been added to the footer of the code index page.
Displays recipe build records which have been built in the last 30 days.
New classes:
IRecipeBuildR
RecipeBuildRe
Loads recipe build records - the data model for the view.
The records for the view are constructed as a named tuple.
By default, records built in the last 30 days are loaded.
RecipeBuildRe
Extends DecoratedResultSet to override the count() method so that it works properly with the group by query.
CompletedDail
The view class - displays source package name, recipe, recipe owner, archive, most recent build datetime.
Supports display of build records where archive is PPA (in which case a link is rendered) or Primary (renders text).
Page Template
lp/
= Screenshot =
Listing page:
http://
Code home page:
http://
= Tests =
New tests:
lp.code.
The test creates records with primary and ppa archives and also outside the default 30 day window.
xx-bazaar-home.txt
Added tests to check content on code home page.
bin/test -vvt test_recipebuil
bin/test -vvt xx-baxaar-home.txt
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
logs/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
1: narrative uses a moin header.
40: narrative uses a moin header.
48: narrative uses a moin header.
83: narrative uses a moin header.
109: narrative uses a moin header.
138: narrative uses a moin header.
lib/lp/
150: E302 expected 2 blank lines, found 1
lib/lp/
130: 'anonymous_
130: 'with_anonymous
149: 'launchpadlib_for' imported but unused
149: 'launchpadlib_
130: 'person_logged_in' imported but unused
149: 'oauth_
130: 'login_celebrity' imported but unused
130: 'with_celebrity
148: 'test_tales' imported but unused
130: 'celebrity_
130: 'run_with_login' imported but unused
130: 'is_logged_in' imported but unused
130: 'with_person_
130: 'login_team' imported but unused
130: 'login_person' imported but unused
130: 'login_as' imported but unused
430: E301 expected 1 blank line, found 0
859: E301 expected 1 blank line, found 0
885: E302 expected 2 blank lines, found 1
961: E302 expected 2 blank lines, found 1
110: Line exceeds 78 characters.
Hi,
This mostly looks good. I have a few comments:
* Why are you including imports in the meat of the test, rather than with the rest of them at the top of the file? dRecords( ) better exist in the factory so other tests could make use of it? cipe, rather than working around it?
* Would _makeRecipeBuil
* Would it make sense to fix __eq__ on SourcePackageRe
* Use of IStoreSelector, which is deprecated. Could you look at switching to I{Master,}Store?
* Please update your XXX per the XXX policy.