Merge lp:~jpds/launchpad/fix_196703 into lp:launchpad/db-devel

Proposed by Jonathan Davies
Status: Merged
Approved by: Brad Crittenden
Approved revision: not available
Merged at revision: 9974
Proposed branch: lp:~jpds/launchpad/fix_196703
Merge into: lp:launchpad/db-devel
Diff against target: 28 lines (+5/-3)
2 files modified
lib/lp/registry/browser/tests/distributionmirror-views.txt (+1/-1)
lib/lp/registry/templates/distributionmirror-index.pt (+4/-2)
To merge this branch: bzr merge lp:~jpds/launchpad/fix_196703
Reviewer Review Type Date Requested Status
Brad Crittenden (community) code Approve
Review via email: mp+15644@code.launchpad.net

Commit message

Corrected mirror registration page to reflect reality about who owns a mirror and when it was first registered.

To post a comment you must log in.
Revision history for this message
Jonathan Davies (jpds) wrote :

= Summary =

When one changes the owner of the mirror, the mirror page then says "Ubuntu mirror registered by the-new-owner.

This is incorrect. The original registrant and date should not be confused with who the current owner of the mirror registry entry is. This branch corrects this bug by changing the wording used.

Revision history for this message
Brad Crittenden (bac) wrote :

Hi Jonathan,

Thanks again for taking on this branch. It's an easy change but every bit helps and it gets you involved with Launchpad development.

The change looks good except for one thing: you need to update the test found in lib/lp/registry/browser/tests/distributionmirror-views.txt

It's always a good idea to run all of the tests in a particular area just to be sure you didn't miss something. You can do that like:

bin/test -vvm lp.registry | tee registry.out

Another big hint is submitting any patch that has not tests for it. That should be a big tip that you missed something.

review: Needs Fixing (code)
Revision history for this message
Brad Crittenden (bac) wrote :

Thanks for the test fix. It looks good now.

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/lp/registry/browser/tests/distributionmirror-views.txt'
--- lib/lp/registry/browser/tests/distributionmirror-views.txt 2009-11-15 19:21:15 +0000
+++ lib/lp/registry/browser/tests/distributionmirror-views.txt 2009-12-04 20:23:27 +0000
@@ -359,7 +359,7 @@
359The page shows the mirror status359The page shows the mirror status
360360
361 >>> print extract_text(find_tag_by_id(content, 'status'))361 >>> print extract_text(find_tag_by_id(content, 'status'))
362 Official Ubuntu Linux Mirror registered by Mark Shuttleworth ...362 Official Ubuntu Linux mirror administered by Mark Shuttleworth, ...
363363
364The page contains a source list...364The page contains a source list...
365365
366366
=== modified file 'lib/lp/registry/templates/distributionmirror-index.pt'
--- lib/lp/registry/templates/distributionmirror-index.pt 2009-10-26 18:40:04 +0000
+++ lib/lp/registry/templates/distributionmirror-index.pt 2009-12-04 20:23:27 +0000
@@ -20,8 +20,10 @@
20 <strong>20 <strong>
21 <tal:status replace="context/status/title">Official</tal:status>21 <tal:status replace="context/status/title">Official</tal:status>
22 </strong>22 </strong>
23 <span tal:replace="context/distribution/title" /> Mirror registered by23 <span tal:replace="context/distribution/title" /> mirror administered
24 <span tal:content="structure context/owner/fmt:link" />24 by
25 <span tal:content="structure context/owner/fmt:link" />, first
26 registered
25 <span tal:content="context/date_created/fmt:displaydate" />27 <span tal:content="context/date_created/fmt:displaydate" />
26 </p>28 </p>
2729

Subscribers

People subscribed via source and target branches

to status/vote changes: