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
1=== modified file 'lib/lp/registry/browser/tests/distributionmirror-views.txt'
2--- lib/lp/registry/browser/tests/distributionmirror-views.txt 2009-11-15 19:21:15 +0000
3+++ lib/lp/registry/browser/tests/distributionmirror-views.txt 2009-12-04 20:23:27 +0000
4@@ -359,7 +359,7 @@
5 The page shows the mirror status
6
7 >>> print extract_text(find_tag_by_id(content, 'status'))
8- Official Ubuntu Linux Mirror registered by Mark Shuttleworth ...
9+ Official Ubuntu Linux mirror administered by Mark Shuttleworth, ...
10
11 The page contains a source list...
12
13
14=== modified file 'lib/lp/registry/templates/distributionmirror-index.pt'
15--- lib/lp/registry/templates/distributionmirror-index.pt 2009-10-26 18:40:04 +0000
16+++ lib/lp/registry/templates/distributionmirror-index.pt 2009-12-04 20:23:27 +0000
17@@ -20,8 +20,10 @@
18 <strong>
19 <tal:status replace="context/status/title">Official</tal:status>
20 </strong>
21- <span tal:replace="context/distribution/title" /> Mirror registered by
22- <span tal:content="structure context/owner/fmt:link" />
23+ <span tal:replace="context/distribution/title" /> mirror administered
24+ by
25+ <span tal:content="structure context/owner/fmt:link" />, first
26+ registered
27 <span tal:content="context/date_created/fmt:displaydate" />
28 </p>
29

Subscribers

People subscribed via source and target branches

to status/vote changes: