lp.project_groups.search doesn't return a result for exact matches
Bug #390922 reported by
Jamu Kakar
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Low
|
Brad Crittenden |
Bug Description
I was writing some launchpadlib-using code today that uses
launchpad.
was perplexed when searching for 'landscape-project' (an existing
project group) returned None. After some experimentation I
discovered that passing 'landscape' would return two matching
project groups, one of with was 'landscape-
I would expect that passing in an exact match would return a
collection with, at the least, the project with the same name.
Related branches
lp://qastaging/~bac/launchpad/bug-476833
- Curtis Hovey (community): Approve (code)
-
Diff: 356 lines (+168/-41)7 files modifiedlib/lp/registry/browser/project.py (+17/-19)
lib/lp/registry/interfaces/project.py (+3/-4)
lib/lp/registry/model/project.py (+11/-7)
lib/lp/registry/stories/product/xx-launchpad-project-search.txt (+24/-3)
lib/lp/registry/templates/products-index.pt (+1/-1)
lib/lp/registry/templates/projects-index.pt (+8/-7)
lib/lp/registry/tests/test_project.py (+104/-0)
summary: |
- lp.project_group.search doesn't return a result for exact matches + lp.project_groups.search doesn't return a result for exact matches |
Changed in launchpad-registry: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in launchpad-registry: | |
assignee: | Barry Warsaw (barry) → nobody |
milestone: | 2.2.8 → none |
Changed in launchpad-registry: | |
status: | Triaged → In Progress |
Changed in launchpad-registry: | |
status: | In Progress → Fix Committed |
Changed in launchpad-registry: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This looks like a dupe of bug 29227
Moving to -registry for Curtis consideration.