Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report: Refactor Class #179

Merged
merged 2 commits into from
Jan 3, 2022

Conversation

jens-erdmann
Copy link
Collaborator

Refactor report class by removing report_map and all its invocations.
report_map lead to confusion about what the actual report is.
Make most methods private that were only used for initialization.
Make outbound_candidates a method. The anonymous function made not much
sense on its own. Replace all access to the inner dict for
outbound_candidates with the new method to hide internal details.
Rework to_json method to enable the refactored class to be serialized.

Remove some intermediate assignments by just returning early.
Functionality should be unchanged.

Signed-off-by: Jens Erdmann <[email protected]>
Refactor report class by removing report_map and all its invocations.
report_map lead to confusion about what the actual report is.
Make most methods private that were only used for initialization.
Make outbound_candidates a method. The anonymous function made not much
sense on its own. Replace all access to the inner dict for
outbound_candidates with the new method to hide internal details.
Rework to_json method to enable the refactored class to be serialized.

Signed-off-by: Jens Erdmann <[email protected]>
@jens-erdmann jens-erdmann merged commit 0d59372 into vinland-technology:main Jan 3, 2022
@jens-erdmann jens-erdmann deleted the refactor-report branch January 3, 2022 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants