Merge lp:~wallyworld/launchpad/remove-dupe-link-133622 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 15726 |
Proposed branch: | lp:~wallyworld/launchpad/remove-dupe-link-133622 |
Merge into: | lp:launchpad |
Diff against target: |
337 lines (+142/-9) 7 files modified
lib/lp/bugs/browser/bug.py (+25/-2) lib/lp/bugs/browser/tests/test_bug_views.py (+52/-0) lib/lp/bugs/javascript/bug_picker.js (+36/-1) lib/lp/bugs/javascript/bugtask_index.js (+1/-0) lib/lp/bugs/javascript/tests/test_duplicates.js (+23/-1) lib/lp/bugs/stories/bugs/xx-duplicate-of-private-bug.txt (+1/-1) lib/lp/bugs/stories/guided-filebug/xx-displaying-similar-bugs.txt (+4/-4) |
To merge this branch: | bzr merge lp:~wallyworld/launchpad/remove-dupe-link-133622 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Review via email:
|
Commit message
Add a Reemove button/link to the HTML bug +duplicate form and the Javascript bug duplicate popup.
Description of the change
== Implementation ==
The bug duplicate forms (both Javascript and HTML) required the entry of a blank duplicate followed by clicking Save/Change in order to remove a bug duplicate. The bug id field on the form was optional.
The branch makes the bug id field mandatory and adds an explicit 'Remove Duplicate' link. For the Javascript form, the link is centred and rendered similar to the equivalent link in the person picker. For the HTML form, a submit button is rendered.
1. Javascript form
I'm not sure if the link should be centred. But I'm not sure it looks great left aligned either. Thoughts?
2. HTML form
I changed the validation processing for the form so that the bug id field is only validated when 'Save' is clicked. No error is raised if 'Remove' is clicked. This allows the confusing "Optional" label to be removed.
The save button was called 'Change' but I renamed it to 'Set Duplicate'. This pairs up nicely with the 'Remove Duplicate' button. The remove button is only rendered if the bug has a duplicate. Also, I don't understand why the Cancel link was missing so I added that too.
== Demo and QA ==
Screenshots of the new forms:
http://
http://
== Tests ==
I found some incidental doctests for the +duplicate functionality but nothing that seemed specifically targetted to test that functionality. I created a new test case TestBugMarkAsDu
The yui tests for the javascript duplicate form were also updated, as well as some doctests.
== Lint ==
Clean except for some doctest noise.
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
Thank you. This looks fine to land I have one suggestion
Replace
<div style="text-align: center">
with
<div class="center">