Page MenuHomeSoftware Heritage

Implement the initial MonogDB backend with a simple data model
Closed, ResolvedPublic

Description

Data model used

content                                                                                                                                                                                                            
{                                                                                                                                                                                                                  
    id: sha1                                                                                                                                                                                                       
    ts: int //optional                                                                                                                                                                                             
    revision: {<ref revision str>: [<ref path>]}                                                                                                                                                                   
    directory: {<ref directory str>: [<ref path>]}                                                                                                                                                                 
}                                                                                                                                                                                                                  
                                                                                                                                                                                                                   
directory                                                                                                                                                                                                          
{                                                                                                                                                                                                                  
    id: sha1                                                                                                                                                                                                       
    ts: int  //optional                                                                                                                                                                                            
    revision: {<ref revision str>: [<ref path>]}                                                                                                                                                                   
}                                                                                                                                                                                                                  
                                                                                                                                                                                                                   
revision                                                                                                                                                                                                           
{                                                                                                                                                                                                                  
    id: sha1                                                                                                                                                                                                       
    ts: int // optional                                                                                                                                                                                            
    preferred  <ref origin>  //optinal                                                                                                                                                                             
    origin  [<ref origin>]                                                                                                                                                                                         
    revision [<ref revisions>]                                                                                                                                                                                     
}                                                                                                                                                                                                                  
                                                                                                                                                                                                                   
origin                                                                                                                                                                                                             
{                                                                                                                                                                                                                  
    id: sha1                                                                                                                                                                                                       
    url: str                                                                                                                                                                                                       
}                                                                                                                                                                                                                  
                                                                                                                                                                                                                   
path                                                                                                                                                                                                               
{                                                                                                                                                                                                                  
    path: str                                                                                                                                                                                                      
}

Event Timeline

jayeshv triaged this task as Normal priority.
jayeshv created this task.

Initial version is merged to master.

jayeshv renamed this task from Implement the initial MonogDB backend to Implement the initial MonogDB backend with a simple data model.Sep 6 2021, 2:14 PM