Merge lp:~sinzui/launchpad/incomplete-api into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | j.c.sackett on 2012-09-20 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 16000 | ||||
| Proposed branch: | lp:~sinzui/launchpad/incomplete-api | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
111 lines (+42/-5) 3 files modified
lib/lp/bugs/model/bugtasksearch.py (+11/-5) lib/lp/bugs/model/tests/test_bugtasksearch.py (+16/-0) lib/lp/bugs/tests/test_searchtasks_webservice.py (+15/-0) |
||||
| To merge this branch: | bzr merge lp:~sinzui/launchpad/incomplete-api | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| j.c.sackett (community) | 2012-09-20 | Approve on 2012-09-20 | |
|
Review via email:
|
|||
Commit Message
Restore API support for searching for Incomplete bug tasks.
Description of the Change
This is possibly a regression from the change to store the actual distinct
incomplete enum in the DB.
-------
RULES
Pre-
* Create an API test, verify it fails, then use the debugger to
find where INCOMPLETE fails to become the other two completes.
* Ah, the _build_
because it is checking for BugTaskStatus.
API sends BugTaskStatusSe
* Both internal and external search use BugTaskStatusSe
view know that the model uses BugTaskStatus so it is adapted
early before going to the model. API goes directly to the model
and is not adapted, _build_
QA
* Run this script and verify more that 20 bugs are found:
{{{
from launchpadlib.
lp = Launchpad.
'testing', service_root='https:/
project = lp.projects[
tasks = project.
for task in tasks:
print task.title
print '%d bug tasks found' % len(tasks)
}}}
LINT
lib/
lib/
lib/
LoC
I have a 3000+ line credit as of this week.
TEST
./bin/test -vvc lp.bugs.
./bin/test -vvc -t SetStatusSearch lp.bugs.
IMPLEMENTATION
I updated _build_
then saw the method handles single and list values. I found the tests for
the method and add two new tests based on the existing INCOMPLETE tests
to verify both enums are supported.
lib/
lib/
lib/

Tricky bug, good fix. Thanks Curtis.