Merge lp:~gmb/launchpad/taste-the-blood-of-ajax-dupefinding into lp:launchpad
Proposed by
Graham Binns
Status: | Merged |
---|---|
Approved by: | Graham Binns |
Approved revision: | not available |
Merged at revision: | not available |
Proposed branch: | lp:~gmb/launchpad/taste-the-blood-of-ajax-dupefinding |
Merge into: | lp:launchpad |
Diff against target: |
338 lines (+183/-31) 4 files modified
lib/canonical/launchpad/javascript/bugs/filebug-dupefinder.js (+81/-14) lib/lp/bugs/browser/bugtarget.py (+58/-3) lib/lp/bugs/browser/tests/bugtarget-filebug-views.txt (+30/-2) lib/lp/bugs/templates/bugtarget-filebug-search.pt (+14/-12) |
To merge this branch: | bzr merge lp:~gmb/launchpad/taste-the-blood-of-ajax-dupefinding |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Abel Deuring (community) | code | Approve | |
Canonical Launchpad Engineering | code, js | Pending | |
Review via email: mp+16006@code.launchpad.net |
To post a comment you must log in.
This branch enables the AJAX dupefinder for project groups.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: /launchpad/ javascript/ bugs/filebug- dupefinder. js bugs/browser/ bugtarget. py bugs/browser/ tests/bugtarget -filebug- views.txt bugs/templates/ bugtarget- filebug- search. pt
lib/canonical
lib/lp/
lib/lp/
lib/lp/
== JSLint notices == graham/ canonical/ lp-branches/ taste-the- blood-of- ajax-dupefindin g/lib/canonical /launchpad/ javascript/ bugs/filebug- dupefinder. js'.
jslint: No problem found in '/home/
jslint: No problem found in '/home/ graham/ canonical/ lp-branches/ taste-the- blood-of- ajax-dupefindin g/lib/canonical /launchpad/ javascript/ lp/comment. js'.
jslint: 2 files to lint.
== Pylint notices ==
lib/lp/ bugs/browser/ bugtarget. py .submit_ bug_action] Operator not preceded by a space handleSubmitBug Failure) bug_action( self, action, data): .this_is_ my_bug_ action] Operator not preceded by a space "this_is_ my_bug" , failure= handleSubmitBug Failure) my_bug_ action( self, action, data): ew.continue_ action] Operator not preceded by a space "validate_ no_dupe_ found") action( self, action, data):
501: [C0322, FileBugViewBase
failure=
^
def submit_
679: [C0322, FileBugViewBase
name=
^
def this_is_
1030: [C0322, FileBugGuidedVi
validator=
^
def continue_
This last bit of lint is cruft and can be ignored.
Here's a list of changes:
== lib/canonical/ launchpad/ javascript/ bugs/filebug- dupefinder. js ==
- I've added a reload_ filebug_ form() function and hooked up the
onchange event of the product field on the project group +filebug
page to it.
- I've refactored the existing code a bit to make more use of globals
where necessary (i.e. for the URLs to the inline filebug form and
dupe search pages).
== lib/lp/ bugs/browser/ bugtarget. py ==
- I've made FileBugViewBase .use_asynchrono us_dupefinder return True for filebug_ base_url property to FileBugViewBase, uidedView, using_malone and default_product. These allow us to get the filebug_ form_url and search_ url to ProjectFileBugG uidedView.
IProjects.
- I've added in inline_
which allows us to grab the base URL for the current request so that
we're not having to fudge it in Javascript.
- I've added two new properties to ProjectFileBugG
products_
default product for the initial creation of the inline +filebug form.
- I've added Project-specific versions of inline_
duplicate_
== lib/lp/ bugs/browser/ tests/bugtarget -filebug- views.txt ==
- I've added tests for the changes to ProjectFileBugG uidedView and
FileBugViewBase.
== lib/lp/ bugs/templates/ bugtarget- filebug- search. pt ==
- I've added a container for the inline_ filebug_ base_url on the page.
- I've moved the containers and links used by the inline dupe search to
within the <tal:uses malone /> block so that if the Project doesn't
use Malone we won't hit an OOPS.