Merge lp:~wallyworld/launchpad/bugpicker-search-button-1031544 into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Ian Booth | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 15736 | ||||
Proposed branch: | lp:~wallyworld/launchpad/bugpicker-search-button-1031544 | ||||
Merge into: | lp:launchpad | ||||
Diff against target: | 0 lines | ||||
To merge this branch: | bzr merge lp:~wallyworld/launchpad/bugpicker-search-button-1031544 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Review via email:
|
Commit message
Refactor bug duplicate form so that there is a common bug picker base class, providing standard picker functionality for selecting the dupe bug.
Description of the change
== Implementation ==
The line count for this branch makes it look bigger than it is. It boils down to pulling out base bug picker code from the dupe picker widget and introducing a base bug picker extending the standard picker class. The benefits are twofold:
1. Standard picker infrastructure used, providing search button, progress bar etc, plus the ability to display a number of matching bugs and select one when/if we support searching on more than just a bug number.
2. Separate out the search and selection of a bug from what to do with it once selected. Thus we can now very easily apply this new bug picker everywhere eg linking a bug to a branch.
The dupe bug picker widget is now quite small - it just provides the dupe specific messages and and hooks into the save/remove events to perform the xhr calls to complete the use cases.
The diff contains a lot of red since code was moved from one module to another, and the copied code in the new module shows up green. But it's essentially the same code.
== Demo/QA ==
http://
== Tests ==
Separate yui tests modules are provided for the base bug picker widget and the derived dupe bug picker widget. A common set of tests is factored out and used for both test modules so that the dupe picker widget runs the same tests as the base picker widget plus additional tests.
== Lint ==
Checking for conflicts and issues in changed files.
Linting changed files:
lib/canonical
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
Thank you for this glorious branch Ian.
I don't think "please" is required on line 68, the application will not be polite it you make a mistake.
The edit action must follow the value that is being edited. When a bug is marked as a dupe, the video shows the edit icon leads the line, which implies the change the whole bug, but the user wants to change the value (the duplicate bug number) Line 884 of the diff might be the issue. I think this moves the edit link after the bug number:
dupe_ span.setContent ([
'<span id="mark- duplicate- text">' ,
'Duplicate of <a>bug #</a></span>', duplicate_ bug" ',
'title= "Edit or remove linked duplicate bug" ',
'class= "sprite edit action-icon"',
'>Edit< /a>'].join( ""));
'<a id="change_
I see an opportunity on Line 1024 to stop implying the users' previous action caused the page to show a warning message. We could use this instead.
<p class="block-sprite large-warning">