compliance-trestle icon indicating copy to clipboard operation
compliance-trestle copied to clipboard

Methods and configuration to match and have default `splits`

Open butler54 opened this issue 3 years ago • 0 comments

Issue description / feature objectives

Looking a methods such as ssp-assemble, they will leverage load-distributed, however, they will only write one coherent document which may not make sense to the end user.

What a user would like is either:

  1. Split to a configurable standard
  2. split to what currently exists in the directory that is being read.

That implies a few pieces of functionality:

  1. A function which given a model directory, discovers what the 'split element path' would be. e.g. given
ssp.json
ssp/metadata.json

the split element path would be ssp.metadata.

  1. a method given a named model location, an in-memory object representation, and the split element path write out the split directory tree. Note technically this is available from the repository api, however, refactoring may be useful

  2. Presuming we do not have an existing element-string lookup, from the config file, the split-element-path and apply (2) rather than writing out the whole file by default.

Caveats / Assumptions

Completion Criteria

butler54 avatar Dec 08 '21 01:12 butler54