UbuntuIRC / 2017 /07 /21 /#launchpad-dev.txt
niansa
Initial commit
4aa5fce
Raw
History Blame Contribute Delete
1.84 kB
[12:03] <sil2100> Hello! Looking for some LP API expertise: I would like to get the list of package uploads for a selected uploader, something like we have on the LP UI in the 'Uploaded packages' section of user info
[12:03] <sil2100> Is there some better way than browsing through the whole publishing history and looking for certain people there?
[12:04] <sil2100> I didn't see any API call that could do it per user
[12:07] <cjwatson> I'm not sure what a good approach there would be. The exact implementation of "Uploaded packages" is difficult to export since it returns a collection of `SourcePackageRelease`s rather than `SourcePackagePublishingHistory`s
[12:08] <cjwatson> Perhaps it should just be another parameter to archive.getPublishedSources
[12:08] <sil2100> That would be useful, since source_package_publishing_history does have all the fields of interest
[12:09] <cjwatson> There are some subtleties there that aren't obvious from the field names; but broadly, yes
[12:10] <cjwatson> I also haven't checked whether we have sufficient indexes to do that query efficiently
[12:48] <sil2100> cjwatson: in that case, maybe a bit unrelated to LP, but do you know of any other easy way I could access to data of which (or actually only how many) developers have been actively doing uploads in the recent x months>
[12:49] <cjwatson> sil2100: Have you considered just looking at the -changes list archives?
[12:51] <sil2100> hm, I guess that could be a bit better than going through all those spph
[12:54] <cjwatson> there used to be a page with pie charts by uploader+release, but I've lost it
[12:56] <sil2100> That one would be useful
[13:07] <cjwatson> http://people.ubuntuwire.org/~stefanor/ubuntu-activity/ but it only goes up to yakkety
[13:09] <sil2100> cjwatson: big thanks!
[13:09] <sil2100> This will be very helpful