Merge lp:~abentley/launchpad/distro-structural-subscription into lp:launchpad
Status: | Merged |
---|---|
Merged at revision: | 14497 |
Proposed branch: | lp:~abentley/launchpad/distro-structural-subscription |
Merge into: | lp:launchpad |
Diff against target: |
70 lines (+16/-11) 2 files modified
lib/lp/registry/javascript/structural-subscription.js (+7/-3) lib/lp/registry/javascript/tests/test_structural_subscription.js (+9/-8) |
To merge this branch: | bzr merge lp:~abentley/launchpad/distro-structural-subscription |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Deryck Hodge (community) | Approve | ||
Review via email: mp+85356@code.launchpad.net |
Commit message
No exception when structural subscriptions disabled.
Description of the change
= Summary =
Fix bug #902252: sort buttons that are missing on the distribution dynamic bugs listing
== Proposed fix ==
Change the structural subscription code so that it does not raise an exception if there is no structural subscription link. There are cases, specifically related to distros, where it is reasonable for the link to be missing, even if a user is logged in.
== Pre-implementation notes ==
Discussed with bac
== Implementation details ==
Changed Y.error to Y.log and updated the tests accordingly.
Fixed some lint.
== Tests ==
xvfb-run bin/test -t test_structural
== Demo and Q/A ==
Ensure you are member of custom-
The order-by bar should be present, the next link should be green, and there should be no "Subscribe to bug mail" link.
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
The code looks great and the change is minimal, so r=me. As we discussed on IRC, we should try to avoid log output for pages when the behavior is normal and not exceptional, but I take the point that this helps people debug what's happening here. I'm fine for it to stand if we log at a lower priority, i.e. to debug. We can turn it on if we need, but it's not noising on normal page requests.
Thanks for being flexible and being willing to fix this up. Approved with that change.