launchpad should have a static link pointing to the lastest download in a project

Bug #636017 reported by Andrew Hutchings
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

It would be great to have a launchpad magic link that always points to the latest download file for a project

For example:

http://launchpad.net/drizzle/+download would resolve to the latest drizzle release download.

Curtis Hovey (sinzui)
affects: launchpad → launchpad-registry
Changed in launchpad-registry:
importance: Undecided → Low
status: New → Triaged
tags: added: feature
tags: added: downloads
Curtis Hovey (sinzui)
tags: added: releases
removed: downloads
Curtis Hovey (sinzui)
tags: added: downloads
Revision history for this message
John A Meinel (jameinel) wrote :

It might be nice to have some sort of category for this as well. "latest source" vs "latest amd64 binary" or "latest deb".

Revision history for this message
Colin Watson (cjwatson) wrote :

Adding a redirection to the latest release would be relatively straightforward. The difficult bit is providing something that links to a particular *file* in that release, since a given ProductRelease can have several (e.g. .tar.gz and .tar.gz.asc, or download files for different architectures, etc.).

GitHub seems to have a similar sort of problem. I haven't found documentation in a few minutes of poking around, but found a couple of articles:

  https://geraldonit.com/2019/01/15/how-to-download-the-latest-github-repo-release-via-command-line/
  https://stackoverflow.com/questions/24085978/github-url-for-latest-release-of-the-download-file

So maybe it would be enough if we had something to get JSON describing the files attached to the latest release, and then it would be a two-step process, at least no worse than GitHub?

Note that you can do this today using Launchpad's API by starting from the releases collection of the relevant project series (e.g. https://api.launchpad.net/devel/lazr.restfulclient/releases), but at present you have to work out the latest release for yourself, then pick out the files_collection_link for that and look at that to find the file you want. It's a bit easier if you can use launchpadlib, but still quite awkward. Providing something that at least simplifies the process of finding the latest release would be helpful, I think.

Revision history for this message
John A Meinel (jameinel) wrote :

Right. The JSON itself does contain some of the 'files' links. To add complexity, the default
https://api.launchpad.net/devel/juju/releases
only includes 75 items, and then a link to the "next 75":

https://api.launchpad.net/devel/juju/releases?ws.size=75&memo=75&ws.start=75

Which means that the default 'releases' *doesn't* contain our latest release, since it starts at the oldest and stops before it gets to the current ones.

We could either list them descending, so you'd default to showing the latest (and then the 'first' item in the list is the latest by publication date (probably)).

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

Related questions

Remote bug watches

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