Merge lp:~brian-murray/launchpad/bug-320596 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Brian Murray on 2010-08-26 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 11458 |
| Proposed branch: | lp:~brian-murray/launchpad/bug-320596 |
| Merge into: | lp:launchpad |
| Diff against target: |
362 lines (+176/-112) 5 files modified
lib/lp/bugs/interfaces/bugtarget.py (+120/-108) lib/lp/bugs/interfaces/bugtask.py (+2/-2) lib/lp/bugs/stories/webservice/xx-bug-target.txt (+2/-2) lib/lp/bugs/tests/test_bugtask.py (+9/-0) lib/lp/bugs/tests/test_searchtasks_webservice.py (+43/-0) |
| To merge this branch: | bzr merge lp:~brian-murray/launchpad/bug-320596 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Abel Deuring (community) | code | Approve on 2010-08-26 | |
| Robert Collins (community) | 2010-07-22 | Needs Fixing on 2010-07-22 | |
|
Review via email:
|
|||
Commit Message
For the devel version of the API have omit_targeted searchTasks parameter default to False.
Description of the Change
Remove the default value of True for omit_targeted so that bug tasks targeted to a milestone are no longer hidden in search results.
Tests modified:
bin/test -cvvt xx-bug.txt -t bugtask-search.txt
| Brian Murray (brian-murray) wrote : | # |
I think having the default value of omit_targeted be False in the API is actually broken. This is a different default value than the web interface and resulted in terribly confusing behavior - see bug 320596 (and its duplicates). However, I'll special case the default value of it if you think that is best.
| Robert Collins (lifeless) wrote : | # |
I don't hold the value to be sacred; however its my understanding that
we promised not to change the behaviour of the 1.0 API - we can change
devel, just not 1.0.
| Brian Murray (brian-murray) wrote : | # |
This is ready for review again. omit_targeted is left defaulting to True and in devel the default value is changed to False.
| Abel Deuring (adeuring) wrote : | # |
Hi Brian,
nice work! Just one minor nitpicks: I find the name "modifiable_params" and "modified_params" a bit confusing. What about "params_

So, I have some needs fixing and a question.
needs fixing: please don't add these things to doctests: none of your tests look like documentation, so they shouldn't be expressed as documentation.
question: looks like you're breaking the 1.0 API to me, I thought that wasn't permitted.