Merge lp:~bac/launchpad/bug-761124 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Brad Crittenden |
Approved revision: | no longer in the source branch. |
Merged at revision: | 12865 |
Proposed branch: | lp:~bac/launchpad/bug-761124 |
Merge into: | lp:launchpad |
Diff against target: |
95 lines (+21/-9) 4 files modified
lib/lp/registry/browser/milestone.py (+3/-0) lib/lp/registry/browser/tests/test_milestone.py (+3/-3) lib/lp/registry/browser/tests/test_subscription_links.py (+8/-0) lib/lp/registry/templates/milestone-index.pt (+7/-6) |
To merge this branch: | bzr merge lp:~bac/launchpad/bug-761124 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Benji York (community) | code | Approve | |
Review via email: mp+58140@code.launchpad.net |
Commit message
[r=benji][bug=761124] Retarget an overly restrictive conditional in the milestone index template.
Description of the change
= Summary =
The JavaScript on the milestone page was not being called to transform
the subscription link.
== Proposed fix ==
The <script> is inside <tal:head-epilogue> which had a conditional
preventing it from being rendered and executed. Move the condition to
surround only those parts it applies to.
Once the JS was called it became obvious that the required data was not
being exposed in LP.cache.
Tests have been added to ensure the setup call is rendered in the HTML
and that the cache is populated.
== Pre-implementation notes ==
None.
== Implementation details ==
As above.
== Tests ==
bin/test -vvt test_subscripti
== Demo and Q/A ==
https:/
'Subscribe to bug mail' link for any logged in user.
= Launchpad lint =
Will fix.
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
./lib/lp/
84: E302 expected 2 blank lines, found 1
Looks good.