Merge lp:~deryck/launchpad/not-implemented-errors into lp:launchpad
Proposed by
Deryck Hodge
on 2010-01-29
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Deryck Hodge on 2010-01-29 | ||||
| Approved revision: | not available | ||||
| Merged at revision: | not available | ||||
| Proposed branch: | lp:~deryck/launchpad/not-implemented-errors | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
43 lines (+23/-0) 2 files modified
lib/lp/bugs/browser/bugtarget.py (+12/-0) lib/lp/bugs/windmill/tests/test_filebug_dupe_finder.py (+11/-0) |
||||
| To merge this branch: | bzr merge lp:~deryck/launchpad/not-implemented-errors | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Francis J. Lacoste (community) | release-critical | Approve on 2010-02-17 | |
| Paul Hummer (community) | 2010-01-29 | Approve on 2010-01-29 | |
|
Review via email:
|
|||
Commit Message
Fix NotImplementedError OPPS when filing a bug by ensuring errors are displayed on filebug page.
To post a comment you must log in.

This is a fix for bug 508302, which describes the problems we've been
having with NotImplementedError OPPS on filing a bug.
The error was introduced when we changed the filebug page to use an
inline JavaScript dupe search. The inline submit bug form used a
different view to process the form submission, which didn't implement
the showFileBugForm method.
To fix this, I simply changed the action on the form to match +filebug
pages, so that any validation errors would be displayed back to the user.
== Tests ==
I updated a Windmill test to test that a single error displays on the
web page. The story test didn't fail because the non-JavaScript version
of the pages used the +filebug view, rather than the inline form. (This
also seemed to make the case for having the inline form use the same
action url.)
To test, run:
./bin/test --layer= BugsWindmillLay er -cvv -t test_filebug_ dupe_finder
== Demo and Q/A ==
To demo in a browser, go to any +filebug page and submit the form
without filling in the description input. You should see the page
reload and display the form validation error.
Finally...
I must admit, I have no idea how to fix these lint errors. Nothing I
tried would work.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: bugs/browser/ bugtarget. py bugs/windmill/ tests/test_ filebug_ dupe_finder. py
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/ bugs/browser/ bugtarget. py .submit_ bug_action] Operator not handleSubmitBug Failure) bug_action( self, action, data): .this_is_ my_bug_ action] Operator not "this_is_ my_bug" , failure= handleSubmitBug Failure) my_bug_ action( self, action, data): ew.continue_ action] Operator not "validate_ no_dupe_ found") action( self, action, data):
495: [C0322, FileBugViewBase
preceded by a space
failure=
^
def submit_
673: [C0322, FileBugViewBase
preceded by a space
name=
^
def this_is_
1045: [C0322, FileBugGuidedVi
preceded by a space
validator=
^
def continue_