Merge lp://staging/~abentley/launchpad/non-product-branches into lp://staging/launchpad

Proposed by Aaron Bentley
Status: Merged
Approved by: Māris Fogels
Approved revision: no longer in the source branch.
Merged at revision: 11021
Proposed branch: lp://staging/~abentley/launchpad/non-product-branches
Merge into: lp://staging/launchpad
Diff against target: 180 lines (+47/-29)
6 files modified
lib/lp/code/browser/sourcepackagerecipelisting.py (+1/-7)
lib/lp/code/browser/tests/test_sourcepackagerecipe.py (+0/-5)
lib/lp/code/browser/tests/test_sourcepackagerecipelisting.py (+33/-0)
lib/lp/code/stories/sourcepackagerecipes/xx-recipe-listings.txt (+6/-11)
lib/lp/code/templates/sourcepackagerecipe-listing.pt (+0/-6)
lib/lp/testing/__init__.py (+7/-0)
To merge this branch: bzr merge lp://staging/~abentley/launchpad/non-product-branches
Reviewer Review Type Date Requested Status
Māris Fogels (community) Approve
Review via email: mp+27652@code.staging.launchpad.net

Description of the change

= Summary =
Fix bug #594240: Recipe listing pages assume base branch is product branch

== Proposed fix ==
Remove product column from branch listings. It is not an essential piece of
information.

== Pre-implementation notes ==
None

== Implementation details ==
None

== Tests ==
bin/test -t TestSourcePackageRecipeListing test_sourcepackagerecipelisting

== Demo and Q/A ==
Create a recipe for a sourcepackage branch. View the recipe listings for that
branch. It should not oops.

= Launchpad lint =

Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.

Linting changed files:
  lib/lp/code/browser/tests/test_sourcepackagerecipelisting.py
  lib/lp/code/browser/sourcepackagerecipelisting.py
  lib/lp/testing/__init__.py
  lib/lp/code/templates/sourcepackagerecipe-listing.pt
  lib/lp/code/browser/tests/test_sourcepackagerecipe.py

To post a comment you must log in.
Revision history for this message
Māris Fogels (mars) wrote :

Hi Aaron,

The code looks good. I assume there are no pagetests for this? (I'm sure ec2 will catch them if there are.)

I am surprised we do not already have a basic test helper like the one you coded. Is there a duplicate helper, or just a lot of code duplication?

Looks good, r=mars

Maris

review: Approve
Revision history for this message
Aaron Bentley (abentley) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/15/2010 03:32 PM, Māris Fogels wrote:
> Review: Approve
> Hi Aaron,
>
> The code looks good. I assume there are no pagetests for this?

I have found and updated the pagetests.

> I am surprised we do not already have a basic test helper like the one you coded. Is there a duplicate helper, or just a lot of code duplication?

Neither, really. Testing page contents with unit tests has not really
been done until recently, so there was no need for it.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwX2uwACgkQ0F+nu1YWqI2xHgCfdGd3EyLTcIg+bZnwInHvmREM
2fMAn08QDNElbTMvpYjA/d3LIotXjm+2
=5QsF
-----END PGP SIGNATURE-----

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.