Page MenuHomeSoftware Heritage

Add storage endpoints to help with repository updates
Closed, MigratedEdits Locked

Description

We need a few endpoints in storage to help with repository updates.

  • find objects of any type by sha1_git (release/revision/directory/content)
    • We only need the type of the object if it exists, nothing more.
  • get the revisions behind existing occurrences of origin (as git smart protocol starting points)
  • get full history graph for the given revisions (used for the git smart protocol dialog)

Event Timeline

olasd raised the priority of this task from to Needs Triage.
olasd triaged this task as Normal priority.
olasd updated the task description. (Show Details)
olasd updated the task description. (Show Details)
olasd added a subscriber: olasd.

Current status on this:

  • find objects of any type by sha1_git (release/revision/directory/content)
    • release_get ([sha1], ...)
    • revision_get
    • directory_get (T264)

      At the moment we have one function with that name that list the entries from such directory.
    • content_find (by hash) --> Rename to content_get?
    • content_get (sha1) Queries only the objstorage and returns a partial object with the content's data and sha1 --> Rename to content_get_data?
  • get the revisions behind existing occurrences of origin (as git smart protocol starting points)
    • revision_get_by (origin, branch, ts) -> return the revision for corresponding occurrence
  • get full history graph for the given revisions (used for the git smart protocol dialog)
    • revision_log (root_revision_sha1, limit=None)
olasd changed the visibility from "All Users" to "Public (No Login Required)".May 13 2016, 5:06 PM