Sections are currently a part of the Document entry. This should be refactored so that sections are their own entry, and thus each section has it's own hash and will be updated independently instead of being copied each time a document is updated. This also prepares the way for better management of history.
This means the tasks involved are:
Sections are currently a part of the Document entry. This should be refactored so that sections are their own entry, and thus each section has it's own hash and will be updated independently instead of being copied each time a document is updated. This also prepares the way for better management of history.
This means the tasks involved are:
Vec<EntryHash>instead ofVec<Section>create_documentzome call soDocumentInputneeds to be updated to hold the Vec of sections outside theDocument& when creating a document it should create the sections first and then add them to document sectionupdate_documentshould take a list of sections to update in the input.get_documentsneeds to be updated to to retrieve all the sections from theVec<EntryHash>so as to actually return the contents of the sections too.