Merge lp://staging/~gmb/launchpad/include-bnl-bug-651108 into lp://staging/launchpad
Status: | Merged |
---|---|
Approved by: | Brad Crittenden |
Approved revision: | 11683 |
Merge reported by: | Graham Binns |
Merged at revision: | not available |
Proposed branch: | lp://staging/~gmb/launchpad/include-bnl-bug-651108 |
Merge into: | lp://staging/launchpad |
Prerequisite: | lp://staging/~gmb/launchpad/add-profiling-feature-flag |
Diff against target: |
739 lines (+233/-112) 9 files modified
lib/canonical/launchpad/doc/profiling.txt (+5/-21) lib/lp/app/configure.zcml (+14/-0) lib/lp/bugs/browser/bugsubscription.py (+59/-15) lib/lp/bugs/browser/tests/test_bugsubscription_views.py (+65/-0) lib/lp/bugs/stories/bugs/xx-bug-personal-subscriptions-advanced-features.txt (+42/-0) lib/lp/services/features/testing.py (+0/-1) lib/lp/services/memcache/doc/tales-cache.txt (+2/-11) lib/lp/services/profile/profile.py (+2/-10) lib/lp/services/profile/tests.py (+44/-54) |
To merge this branch: | bzr merge lp://staging/~gmb/launchpad/include-bnl-bug-651108 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brad Crittenden (community) | code | Approve | |
Review via email:
|
Commit message
A feature-flagged bug_notififcati
Description of the change
This branch adds a feature-flagged bug_notificatio
== lib/lp/
- I've added the bug_notificatio
- I've updated the subscribe_action() and _handleSubscribe() methods to deal with bug_notificatio
== lib/lp/
- I've added a test to show that when the malone.
== lib/lp/
- I've added a unit test to show that when the advanced subscriptions features are turned on the bug_notificatio
Hi Graham,
Thanks for this branch. I find it particularly interesting as I've not yet done nor reviewed an feature flag branches.
Please run the super new utilities/ update- copyright script before landing. I think it only updates the files you've touched, some of which need it.
At line 144 of browser/ bugsubscription .py a local variable is assigned but not used. I wonder why lint doesn't catch it? Speaking of, there are some lint issues that appear to be real.
I find the multiple tests in setUpWidgets to be confusing. Please factor out the test for is_subscribed and nest the remaining tests. It should simplify things a bit.
This comment is confusing/ misleading as it implies the user can toggle the features:
183 + # When a user subscribes to a bug using the advanced features on
184 + # the Bug +subscribe page, the bug notification level they...
I think this version is more readable and accurate:
183 + # When a user subscribes to a bug with the advanced features on
184 + # the Bug +subscribe page enabled, the bug notification level they...
It is odd the current diff in the MP is showing a conflict in tales-cache.txt but none exists.