Webapp is not displaying the origin type on the search results
In webapp.staging and webapp1 which are updated to the last storage version, The type of origin with old visit statuses (pre - storage 0.21.0) is not correctly retreived :
❯ curl -s https://webapp.staging.swh.network/api/1/origin/https://gitlab.com/miwc/miwc.github.io.git/visit/latest/\?require_snapshot\=true | jq ''
{
"origin": "https://gitlab.com/miwc/miwc.github.io.git",
"date": "2020-12-07T18:21:58.967952+00:00",
"type": null,
"visit": 1,
"status": "full",
"snapshot": "759b36e0e3e81e8cbf601181829571daa645b5d2",
"metadata": {},
"origin_url": "https://webapp.staging.swh.network/api/1/origin/https://gitlab.com/miwc/miwc.github.io.git/get/",
"snapshot_url": "https://webapp.staging.swh.network/api/1/snapshot/759b36e0e3e81e8cbf601181829571daa645b5d2/"
}
Migrated from T3001 (view on Phabricator)