Page MenuHomeSoftware Heritage

"Save code now" history links lead to an error (because timestamp is null)
Closed, MigratedEdits Locked

Description

Steps:

  1. got to https://archive.softwareheritage.org/save/#requests
  2. click on the URL of any succeeded task
  3. it leads to an URL like: https://archive.softwareheritage.org/browse/origin/directory/?origin_url=https://github.com/MITDDC/zork.git&timestamp=null

which errors with BadInputExc: Unable to parse date string 'null'

If I'm reading Sentry correctly, it appears in v0.0.249

Sentry issue: SWH-WEBAPP-12X

Event Timeline

vlorentz created this task.

Looks like that bug appeared yesterday according to the save requests list. I can not reproduce with docker so surely a side effect from another swh component, need to dig further on this.

Ok got it, there is currently a replication lag for the postgres database and recent origin visits have not yet been copied from belvedere to sommerset, so the null timestamp as the visit associated to a save request can not be found.

Nevertheless, the Web UI should not add the timestamp query parameter to browse URL if it is null. Diff incoming to fix that incorrect behavior.

Ok got it, there is currently a replication lag for the postgres database and recent origin visits have not yet been copied from belvedere to sommerset, so the null timestamp as the visit associated to a save request can not be found.

On that, and after chatting with @ardumont and @vsellier, I've submitted T2562