Page MenuHomeSoftware Heritage

Better error message when switching branch if the visited tree or file is absent
Closed, MigratedEdits Locked

Description

The current UI allows to switch branches while viewing a tree or file.

Of course, there is no guarantee that the same tree or file will be present in the other branch one switches to, see for example:

https://archive.softwareheritage.org/browse/origin/2/visit/1/content/arch/arm/kernel/xscale-cp0.c/?branch=refs/tags/v2.6.24

vs

https://archive.softwareheritage.org/browse/origin/2/visit/1/content/arch/arm/kernel/xscale-cp0.c/?branch=refs/tags/v2.6.12

Currently, the UI shows an error message:

Directory entry with path arch/arm/kernel/xscale-cp0.c from e4660ac807d16a7bd3af6db2dfce539acd94ba23 not found

While this error message is perfecly sound, we might want to give a more informative one to the user, and possibly going back to the previous page.

Event Timeline

rdicosmo created this object in space Restricted Space.

Agreed on that. In a general way, high level error page for handling HTTP errors (400, 404, ...) must be added for a nicer user experience.

zack triaged this task as Low priority.Oct 10 2017, 10:59 AM
zack shifted this object from the Restricted Space space to the S1 Public space.