Merge lp:~brian-murray/launchpad/bug-666496-findSimilar into lp:launchpad/db-devel
Proposed by
Brian Murray
Status: | Merged |
---|---|
Approved by: | Brian Murray |
Approved revision: | 11824 |
Merged at revision: | 9948 |
Proposed branch: | lp:~brian-murray/launchpad/bug-666496-findSimilar |
Merge into: | lp:launchpad/db-devel |
Diff against target: |
72 lines (+24/-10) 3 files modified
lib/lp/bugs/doc/bugtask-find-similar.txt (+20/-1) lib/lp/bugs/model/bugtask.py (+3/-8) lib/lp/testing/factory.py (+1/-1) |
To merge this branch: | bzr merge lp:~brian-murray/launchpad/bug-666496-findSimilar |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Abel Deuring (community) | code | Approve | |
Review via email: mp+40196@code.launchpad.net |
Commit message
Prevent returning the bug one started a findSimilarBugs() search with.
Description of the change
Bug 666496 is about findSimilarBugs() returning the same bug that a search started from, this happens for bug reports containing duplicate bugs. This branch fixes that and adds a test for it to lib/lp/
It can be tested via:
bin/test -cvvt bugtask-
To post a comment you must log in.
Looks good. Just one nitpick:
+XXX bdmurray 2010-11-05: This would be more appropriate as a unit test.
I appreciate that you mention unit tests, but our XXX policy says that an XXX should always have a related bug. But writing a unit test with just the test "no duplicate results" is IMHO pointless: other parts of lib/lp/ bugs/doc/ bugtask- find-similar. txt would also better live in a unit test, but that's beyond your bug fix. So I think you can simply remove the XXX, instead of explicitly adding a bug report. We already know that we want more unit tests ;)