Merge lp://staging/~danilo/launchpad/advanced-bug-subscription-cleanup into lp://staging/launchpad
Status: | Merged |
---|---|
Approved by: | Данило Шеган |
Approved revision: | no longer in the source branch. |
Merged at revision: | 12939 |
Proposed branch: | lp://staging/~danilo/launchpad/advanced-bug-subscription-cleanup |
Merge into: | lp://staging/launchpad |
Diff against target: |
972 lines (+759/-113) 5 files modified
lib/lp/bugs/javascript/bug_notification_level.js (+200/-49) lib/lp/bugs/javascript/bugtask_index_portlets.js (+51/-58) lib/lp/bugs/javascript/tests/test_bug_notification_level.html (+41/-0) lib/lp/bugs/javascript/tests/test_bug_notification_level.js (+460/-0) lib/lp/bugs/templates/bug-subscription.pt (+7/-6) |
To merge this branch: | bzr merge lp://staging/~danilo/launchpad/advanced-bug-subscription-cleanup |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brad Crittenden (community) | code | Approve | |
Review via email: mp+59235@code.staging.launchpad.net |
Commit message
[r=bac][bug=740627,770460] Fix all issues with showing/hiding of bug notification level options in advanced subscription overlay.
Description of the change
= Bug 740627 and bug 770460 =
The logic that shows/hides the options to set different levels of subscriptions on bug subscription overlay is very unreliable at the moment. Animation is also very jerky and unstable.
Some of the problems are that reloading the overlay sometimes doesn't load the animation handlers at all, or that wrong options are shown depending on the conditions.
The root cause is that some code expected at most one subscription overlay, and yet more than one was created because of the mute functionality.
Sorry for the over-sized branch, but over half is unit tests.
== Proposed fix ==
* Rename bug_subscription.js to bug_notificatio
* In bugtask_
== Implementation details ==
Other notes:
* I am not changing this to allow more than one overlay because it's too ingrained in the code using Y.one/Y.all where we'd need the parent/container node instead
* In bugtask_
* clean_up_
== Tests ==
lib/lp/
== Demo and Q/A ==
Set feature flag:
'malone.
https:/
https:/
For mute link to show, eg. set assignee to yourself.
Demo:
https:/
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
Hi Danilo,
* I notice when I click on 'Unmute' there is some jumpiness as the overlay seems to be drawn one way at first and then redrawn. I can see it in your screencast too. Do you know the reason for this?
* Also when we the unmute overlay is show, the first time you select 'unmute and subscribe' the overlay has to resize to accommodate the extra width of the recently revealed text. Can that be taken into account at the beginning so we don't see the jump?
* You have written "when either the selected radio box" but there is no 'or' clause. I think 'either' should be deleted or you need to complete your thought.
* Many of your comments are of the form "Is there something." Those should be punctuated as questions with '?'
* Typo: s/A list of radio in/A list of radio buttons in/
* s/radio box/radio button/ I've always see "checkbox" and "radio button" but never (before now!) "radio box".
* I'm glad you removed the hack for loadFormContent AndRender but I don't understand why it was there in the first place.
* In all but one test case you have repeated: _bug_notificati on_level_ visible = true;
+ // Restore the default value.
+ module.
This setting should be done in the setUp (or tearDown) function. I think the one place you didn't do it was a mistake, no?
*** Thanks for all of the great tests! They are clear and (seem to be) comprehensive.