Turned ManifestComponents into dataclasses
IngestionManifest has not been turned into a dataclass since its __init__()
method has logic in it.
ManifestComponentIF instances (except IngestionManifests) will no longer be missing attributes; attributes that used to be missing will now just be None. I didn't see any cases where we wanted attributes that could be missing to be included in their class' JSON when they're None
, so I changed the to_dict()
methods to exclude them in this case.
Docs for dataclasses can be found here: https://docs.python.org/3.10/library/dataclasses.html
Merge request reports
Activity
added 8 commits
-
47f690eb...47c6a12c - 7 commits from branch
2.8.2.1-DEVELOMENT
- 9af3608f - Turned ManifestComponents into dataclasses
-
47f690eb...47c6a12c - 7 commits from branch
added 11 commits
-
9af3608f...1b3483a0 - 10 commits from branch
2.8.2.1-DEVELOMENT
- d1e61314 - Turned ManifestComponents into dataclasses
-
9af3608f...1b3483a0 - 10 commits from branch
mentioned in commit 76281832
Please register or sign in to reply