API: In distro.getSeries, it's not clear the name in name_or_version should be the launchpad name

Bug #344282 reported by Ursula Junque
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Curtis Hovey

Bug Description

As seen in OOPS-1171EC107, a user tried, using the API, to getSeries of Ubuntu distro trying to use the display name, "Hardy", and it oopsed.

>>> distro = lp.distributions['ubuntu']
>>> distro.getSeries(name_or_version='Hardy')
NotFoundError: u'Hardy'

It's not clear in the docstring of getSeries method that you should use the launchpad name, "hardy".

Also, it'd be good if the exception raised was NotFound (OOPS-1171EB48) instead of NotFoundError, to keep consistency.

Ursula Junque (ursinha)
description: updated
Curtis Hovey (sinzui)
Changed in launchpad-registry:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Curtis Hovey (sinzui) wrote :

We just need to update the docstring to state that name_or_version is `IDistroSeries.name` or `IDistroSeries.version`.

tags: added: trivial
Curtis Hovey (sinzui)
Changed in launchpad-registry:
assignee: nobody → Curtis Hovey (sinzui)
milestone: none → 2.2.6
Revision history for this message
Curtis Hovey (sinzui) wrote :

Fixed in launchpad db-devel r8187.

Changed in launchpad-registry:
status: Triaged → Fix Committed
Revision history for this message
Curtis Hovey (sinzui) wrote : Bug 344282 Fix released

Fixed released in Launchpad 2.2.6.

Changed in launchpad-registry:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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