Page MenuHomeSoftware Heritage

Immediately download archive if already cooked by the vault
Open, NormalPublic

Description

In the Software Heritage web application, all browsed directories and revisions can be downloaded as an archive
(source tarball for a directory, gitfast archive for a revision).

As Software Heritage does not store all possible archives that can be produced from its content, an explicit request
must be send by an user to produce the one he is interested in. The Software Heritage component that is responsible
to perform archive creation (called cooking in the Software Heritage semantics) and offer a download link to the
user is called the vault.

When an user requests to download an archive, through the "Download" entry from the "Actions" dropdown located
in the top right part of the UI, a modal popups asking to confirm the action. The user is then redirected to
a dedicated interface to track the vault cooking progress. Once the task is finished, a download link for the
cooked archive is made available.

When an archive has been cooked, it stays in cache on our servers. It means there is no need to cook it again
and the download link is immediately available.

The current behavior of the web application is to show the modal popup asking for an archive cooking
even if it has already been done. This must be improved by checking if the requested archive has already
been cooked and immediately redirect to the download link if it is the case.

Event Timeline

anlambert triaged this task as Normal priority.
anlambert updated the task description. (Show Details)Fri, Jun 28, 11:35 AM
anlambert renamed this task from Immediately download archive if it has already been cooked by the vault to Immediately download archive if already cooked by the vault.Sat, Jun 29, 1:52 AM
shisus added a subscriber: shisus.Mon, Jul 1, 2:41 PM

Hello everyone, is there anyone working on this one or can take it?

Hello @shisus, you can work on that task.

Select the "Assign / Claim" action from Phabricator to notice others that you are responsible of implementing it.

shisus claimed this task.Thu, Jul 4, 7:04 PM