Skip to content

Export entities in CSV output

Refs https://redmine.teklia.com/issues/2558

For the simara project, we need to export entities in the CSV export.

A new option --with-entities will be introduced. When it's set, new columns are added:

  • each column represent a unique entity type, using the type name as column header
  • all entities that belong to a type are listed in the relevant cell (per element)
  • if there are multiple entities for the same type on a given element, their content are joined with a ;

A second option --entities-worker-version must also be introduced to optionally limit the entities:

  • by default it's disabled, and all entities are loaded
  • when an UUID is set, only entities produced by that worker version are used
  • when the value is manual, only entities without a worker version are used