Skip to content
Snippets Groups Projects
  1. Jan 19, 2018
  2. Jan 16, 2018
  3. Jan 10, 2018
  4. Jan 09, 2018
  5. Jan 06, 2018
  6. Dec 21, 2017
  7. Dec 19, 2017
  8. Dec 18, 2017
  9. Dec 15, 2017
    • Nicolas Dandrimont's avatar
    • Nicolas Dandrimont's avatar
      Add snapshot models · f4ea97cb
      Nicolas Dandrimont authored
      Summary:
      Snapshots are the new, improved occurrences; They're the topmost object in the
      Software Heritage Merkle Tree, and represent a full picture of an origin at a
      given time.
      
      Snapshots contain a list of named pointers to objects in the Software Heritage
      archive, as well as an intrinsic identifier. The full specification is
      supported: pointers to all types of objects, dangling pointers, as well as alias
      branches.
      
      They're implemented with a somewhat classic fully normalised model; Foreign keys
      use a sha1_git, which makes more sense regarding pointing at non-existent
      objects, at the expense of some economies of size.
      
      Backwards compatibility both ways with occurrences is ensured: when adding a
      snapshot linked to an origin visit, the corresponding occurrences are created in
      occurrence_history; when querying the snapshot for an origin visit where we
      haven't generated the snapshot yet, a virtual snapshot with id None is returned.
      This lets us migrate to the new tables gently.
      
      Close T567.
      
      Test Plan: Integration tests are included.
      
      Reviewers: zack, #reviewers!
      
      Maniphest Tasks: T567
      
      Differential Revision: https://forge.softwareheritage.org/D268
      f4ea97cb
  10. Dec 07, 2017
  11. Dec 05, 2017
  12. Nov 24, 2017
  13. Nov 17, 2017
  14. Nov 15, 2017
  15. Nov 10, 2017
  16. Nov 09, 2017
  17. Nov 06, 2017
  18. Nov 03, 2017
  19. Nov 02, 2017
  20. Oct 24, 2017
  21. Oct 23, 2017
Loading