Merge lp:~adeuring/launchpad/bug-596944-browser into lp:launchpad/db-devel
| Status: | Merged |
|---|---|
| Approved by: | Abel Deuring on 2010-12-02 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 10033 |
| Proposed branch: | lp:~adeuring/launchpad/bug-596944-browser |
| Merge into: | lp:launchpad/db-devel |
| Diff against target: |
373 lines (+155/-93) 7 files modified
lib/lp/bugs/browser/bugtarget.py (+9/-6) lib/lp/bugs/browser/tests/test_bugtarget_configure.py (+6/-2) lib/lp/bugs/browser/tests/test_bugtarget_filebug.py (+37/-0) lib/lp/bugs/interfaces/bugtarget.py (+7/-0) lib/lp/bugs/templates/bugtarget-filebug-search.pt (+92/-83) lib/lp/registry/browser/distributionsourcepackage.py (+2/-1) lib/lp/registry/browser/tests/distributionsourcepackage-views.txt (+2/-1) |
| To merge this branch: | bzr merge lp:~adeuring/launchpad/bug-596944-browser |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Curtis Hovey (community) | code | 2010-12-02 | Approve on 2010-12-02 |
| Abel Deuring (community) | Resubmit on 2010-12-02 | ||
| j.c.sackett (community) | code* | 2010-12-02 | Approve on 2010-12-02 |
|
Review via email:
|
|||
Commit Message
[r=jcsackett,
Description of the Change
This branch adds a field to enable/disable duplicate searches to the bug tracker configuration forms for distribution source packages and for products.
The template for filing bugs now renders the "main bug report form" immediately if the duplicate search is disabled.
I talked with Deryck about writing unit tests for the changes, but we think it is better toland the branch before PQM closes tomorrow, so I simply extended an existing page test instead.
test: ./bin/test -vvt xx-product-
no lint, excpet complaints about Moin headers in the page test
| Curtis Hovey (sinzui) wrote : | # |
The additions to the story test are not a story. If I remove the code, the text does not make sense. If I just read the code in the story, I do not know why an admin is making the change for a project he does not own (either the owner does not have permission or we are masking permission issues--do not use admin when unless only an admin can do the task). Users do not read URLs, they read browser title and page content. I personally cannot see how the change is being tests. I do not think a slow story is needed for these changes.
The change was to a view and I expect TestProductBugC
self.
| Abel Deuring (adeuring) wrote : | # |
I've added unit tests for both variants of the bug reporting form and changed an existing test for the edit form.
| Curtis Hovey (sinzui) wrote : | # |
Your test additions are lovely.
Remove the previous additions to lib/lp/

Abel--
This looks like a nice branch.
I would really appreciate it if you could clean up the moin headers to restructured text, since that's the direction we seem to be heading in docs/stories.
Also: this may be just prejudice on my part, but it might be worth getting an RC for this branch and building out the unittests for this. Not a blocker for the branch, but an idea.
Aside from that, thanks for cleaning up some formatting and link text while you were at it.