Hochfrequenz / bo4e_migration_framework

A framework to validate and migrate data sets from a source via BO4E to a target system
MIT License
2 stars 0 forks source link

Define a DataStructure `MigrationSummary` #16

Open hf-kklein opened 1 year ago

hf-kklein commented 1 year ago

Define a data structure MigrationSummary that collects information about a migration run (using the MigrationStrategy from #15). It shall be meaningful and summarize what happend from source to target. Note that some information are already being logged, e.g. in the validation or the filter.

_Originally posted by @hf-kklein in https://github.com/Hochfrequenz/bo4e_migration_framework/pull/15#discussion_r1051942346_

hf-kklein commented 1 year ago

please use attrs:

@attrs.define(auto_attribs=True, kw_only=True)
class MigrationSummary:
    attributes = attrs.field(...)
    go = attrs.field(...)
    here = attrs.field(...)