getDevelopmentSeries fails to find a series

Bug #1719715 reported by Joshua Powers
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
New
Undecided
Unassigned

Bug Description

Beginning September 25 3pm UTC, it appears the getDevelopmentSeries function cannot find a development release:

>>> from launchpadlib.launchpad import Launchpad
>>> LP = Launchpad.login_anonymously('what_is_devel', 'production', version='devel')
>>> ubuntu = LP.distributions['ubuntu']
>>> devel = ubuntu.getDevelopmentSeries()
>>> len(devel)
0

I expected to see a result of length 1, which had a link to Artful.

Revision history for this message
Robie Basak (racb) wrote :

https://launchpad.net/+apidoc/devel.html#distro_series says the status can be:

 One of:

    Experimental
    Active Development
    Pre-release Freeze
    Current Stable Release
    Supported
    Obsolete
    Future

I guess artful is now in Pre-release Freeze now, and so getDevelopmentSeries doesn't actually do what we want? I guess we need to enumerate all series instead and find ones that are either in Active Development or Pre-release Freeze.

Revision history for this message
Robie Basak (racb) wrote :

getDevelopmentSeries

"Return the DistroSeries which are marked as in development."

Perhaps this needs to make it clear that "Pre-release Freeze" isn't "in development" for the purposes of this method.

Revision history for this message
Robie Basak (racb) wrote :

Answer from LP team: use distro.current_series instead. Leaving the bug open for Launchpad API cleanup.

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.