Skip to content
Snippets Groups Projects

Turned ManifestComponents into dataclasses

Merged Sam Kagan requested to merge dataclassify-ingest_envoy into 2.8.2.1-DEVELOMENT

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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading