Skip to content
Snippets Groups Projects

model: Add payload to ExtID class

Closed Timothy Sample requested to merge generated-differential-D8759-source into master

This revision adds payload and payload type fields to the ExtID class. The intent is to use these fields to store Disarchive specifications to support recovering source tarballs.

See https://sympa.inria.fr/sympa/arc/swh-devel/2022-02/msg00022.html where Stefano suggests using a generic payload mechanism for ExtIDs and https://sympa.inria.fr/sympa/arc/swh-devel/2022-05/msg00027.html where we decided on using object storage for the payload.


Migrated from D8759 (view on Phabricator)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
272 272 a relationship between an original identifier of an artifact, in its
273 273 native/upstream environment, and a `core SWHID <persistent-identifiers>`,
274 which is specific to Software Heritage. As such, it is a triple made of:
274 which is specific to Software Heritage. As such, it includes:
275 275
276 276 * the external identifier, stored as bytes whose format is opaque to the
277 277 data model
278 278 * a type (a simple name and a version), to identify the type of relationship
279 279 * the "target", which is a core SWHID
280 280
281 An extid may also include a "payload", which is arbitrary data about
282 the relationship. For example, an extid might link a directory to
283 the cryptographic hash of the tarball that originally contained it.
284 In this case, the payload could include data useful for
285 reconstructing the original tarball from the directory.
286
  • mentioned in merge request swh-storage!849 (closed)

  • Merge request was accepted

  • Nicolas Dandrimont approved this merge request

    approved this merge request

  • Maybe worth @douardda or @marmoute having a look at this, as I think there were more usecases than just disarchive for this?

  • vlorentz approved this merge request

    approved this merge request

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading