banyan-cli icon indicating copy to clipboard operation
banyan-cli copied to clipboard

Manifest Output

Open amiller68 opened this issue 2 years ago • 1 comments

NB: Feature requests will only be considered if they solve a pain or present a useful refactoring of the code.

Summary

The structure of Manifest files is hard to understand / contains redundant fields / should contain additional metadata

Problem + Impact

The problem is that the format is hard to understand and contains alot of seemingly redundant information

Impact

Fixing this will make representing manifests in Firestore eaiser, and make it easier to work with them for key sharing and layered services

Solution

  1. Talk through a suitable format. Some nice things would be:
  • change long fields to shorter ones (i.e. original_data.original_root can just be named root)
  • Origin_data is also kinda redundant, all fields in that can be top level.
  • Get rid of permissions on files and all other ting currently set to null be default
  • Add file size (rename len to size)
  • remove file type (you can look at data_processing.File and see if it exists)
  1. Do it
  2. Maybe it makes our data structures nicer and easier to port to WNFS

amiller68 avatar Mar 28 '23 15:03 amiller68

one thought to put here: root should maybe include a hostname or other machine identifier. idk yet

laudiacay avatar Mar 29 '23 08:03 laudiacay