Page MenuHomeSoftware Heritage

add missing "length" property to revision.metadata JSON for all imported tar/zip
Closed, MigratedEdits Locked

Description

the original_artifact JSON properties in revision.metadata for all imported tar/zip files look this:

{
  "original_artifact" : [
    {
      "name" : "dejagnu.texi.tar.gz",
      "sha1" : "9a5380aa7c2a9fb7f84036b223cbde07d9db7e67",
      "sha256" : "68f5a356bae22bfef8d09c6314d2c508016507b197e298bcb210a2cdf674cb93",
      "sha1_git" : "26a738cc74f236e7e2e1ee1a00817dfe5716aa2d",
      "archive_type" : "tar"
    }
  ]
}

A length field is missing and we should add it, both to the tarball loader and to the already imported data.

Rationale: the lack of a length field is inconsistent both with the layout of the content table and with what the git loader does.

Note that the expected JSON Schema is now available in swh-storage under sql/json/.

Event Timeline

ardumont changed the task status from Wontfix to Resolved.Mar 9 2016, 12:26 AM

ardumont closed this task as "Wontfix".

Of course, it's a typo!

olasd changed the visibility from "All Users" to "Public (No Login Required)".May 13 2016, 5:09 PM