'choose a source package' suggests undefined when search has too many results

Bug #410864 reported by Dean Sas
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Henning Eggers

Bug Description

1. Visit a bug page that has a ubuntu bug task open
2. Click the icon to edit the ubuntu bug task
3. Press 'choose' next to the package name
4. Type in 'kernel' or 'linux' in the search that pops up
5. Get "too many results" message and see only 'undefined' in the list.

I don't expect to see 'undefined',

The ajax request went to https://bugs.edge.launchpad.net/ubuntu/+source/ubuntu-docs/+bug/410706/@@+huge-vocabulary?name=SourcePackageName&search_text=kernel&batch=6&start=0

The response was:
{"total_size": 200, "entries": [{"api_uri": "Could not find canonical url.", "css": "sprite bullet",
 "description": "Source of: affix-common, affix-headers, affix-source", "value": "affix-kernel", "title"
: "affix-kernel"}, {"api_uri": "Could not find canonical url.", "css": "sprite bullet", "description"
: "Source of: apw-ppa-jaunty-kernel", "value": "apw-ppa-jaunty-kernel", "title": "apw-ppa-jaunty-kernel"
}, {"api_uri": "Could not find canonical url.", "css": "sprite bullet", "description": "Source of: batman-adv-source"
, "value": "batman-adv-kernelland", "title": "batman-adv-kernelland"}, {"api_uri": "Could not find canonical
 url.", "css": "sprite bullet", "description": "Source of: cpad-common, cpad-kernel-dev, cpad-kernel
...", "value": "cpad-kernel", "title": "cpad-kernel"}, {"api_uri": "Could not find canonical url.", "css"
: "sprite bullet", "description": "Source of: dnjl-ppa-kernel", "value": "dnjl-ppa-kernel", "title":
 "dnjl-ppa-kernel"}, {"api_uri": "Could not find canonical url.", "css": "sprite bullet", "description"
: "Source of: dphys-kernel-packages", "value": "dphys-kernel-packages", "title": "dphys-kernel-packages"
}]}

Using edge - Launchpad 2.2.6 (r9041)

Related branches

Changed in malone:
status: New → Confirmed
Curtis Hovey (sinzui)
affects: malone → lazr-js
Changed in lazr-js:
importance: Undecided → Low
status: Confirmed → Triaged
Māris Fogels (mars)
Changed in lazr-js:
importance: Low → High
Revision history for this message
Deryck Hodge (deryck) wrote :

The fix for bug 778129 will also fix this.

Changed in lazr-js:
assignee: nobody → Henning Eggers (henninge)
status: Triaged → In Progress
affects: lazr-js → launchpad
tags: added: qa-ok
Revision history for this message
Henning Eggers (henninge) wrote :

I'd even have called this a duplicate bug.

Changed in launchpad:
status: In Progress → Fix Committed
Revision history for this message
Henning Eggers (henninge) wrote :

Nope, I was wrong. This is for the case where the actual search returns too many results. Bug 778129 is about pickers that don't display a search box.

Changed in launchpad:
status: Fix Committed → In Progress
tags: removed: qa-ok
Curtis Hovey (sinzui)
tags: added: package-picker vocabulary
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.