Merge lp:~intellectronica/launchpad/bugmail-ui-fixes into lp:launchpad
Proposed by
Eleanor Berger
Status: | Merged |
---|---|
Approved by: | Gavin Panella |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~intellectronica/launchpad/bugmail-ui-fixes |
Merge into: | lp:launchpad |
Diff against target: |
390 lines 10 files modified
lib/canonical/launchpad/browser/structuralsubscription.py (+30/-1) lib/canonical/launchpad/database/structuralsubscription.py (+11/-0) lib/canonical/launchpad/interfaces/structuralsubscription.py (+3/-0) lib/lp/registry/browser/distribution.py (+2/-5) lib/lp/registry/browser/distroseries.py (+5/-10) lib/lp/registry/browser/milestone.py (+2/-6) lib/lp/registry/browser/product.py (+3/-10) lib/lp/registry/browser/productseries.py (+5/-12) lib/lp/registry/configure.zcml (+14/-7) lib/lp/registry/model/milestone.py (+4/-0) |
To merge this branch: | bzr merge lp:~intellectronica/launchpad/bugmail-ui-fixes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | code | Approve | |
Martin Albisetti (community) | ui | Approve | |
Michael Nelson (community) | ui | Approve | |
Canonical Launchpad Engineering | code ui | Pending | |
Review via email: mp+13067@code.launchpad.net |
To post a comment you must log in.
This branch makes the menu link for subscribing to bug mail sensitive to the user's existing subsription. If the user is already subscribed (directly, or via one of the teams he's a member of), the link displays the edit icon and offers to edit subscription. If no subscription exists the link offers to subscribe and displays the add icon.
There are no lint warnings related to my changes (the usual lazr stuff is still there).
To test, run bin/test -vv -t xx-milestone- add-and- edit.txt -t xx-distroseries -index. txt -t xx-productserie s-index. txt -t xx-productserie s-add-and- edit.txt -t xx-bug- subscriptions. txt -t xx-distribution -bugs-page. txt -t xx-distroreleas e-bugs- page.txt -t xx-product- bugs-page. txt > test-output.txt
To play with the UI, go to https:/ /bugs.launchpad .dev/jokosher or https:/ /bugs.launchpad .dev/ubuntu or any of the other structural subscription targets and try to subscribe and unsubscribe.
While working on this I realised that the form for editing structural subscriptions does not behave in the expected way, like all other boomerang forms. It doesn't offer a cancel link, and after submitting it displays the form again, instead of returning to the context. I plan to fix that in a future branch.