[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#558380: SOAP: Please add 'pending' per version (possible optional)



Package: debbugs
Severity: wishlist

Hi,

I need the "pending" information for each package version seperate.
Currently I do this with asking all package versions in testing and
unstable, but it would be way more efficient if get_status could
(perhaps optionally) not only give the final "pending" state, but
rather for each package version.

Speaking in code (s is my soap handler)
    st = s.get_status(bug)
    stt = st[0][1]
    for version in packageversions(stt['package']):
        p=s.get_status(('bug', bug, 'version', version))
        # do something with stt['package', ...], version, p[0][1]['pending']

I would prefer:
    st = s.get_status(('bug', bug, 'pendingforsuite', ['testing', 'unstable']))
    stt = st[0][1]
    for version in stt['pending_per_version']:
        # do something with stt['package', ...], version, stt['pending_per_version'][version]


Would be great if that could be added there.


Cheers,
Andi




Reply to: