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

Adapt PackageInfo conversion functions and rename temporaryPackageInfo #1661

Merged
merged 2 commits into from
May 8, 2023

Conversation

lennartclaas
Copy link
Member

Summary of changes

  1. Adapt PackageInfo conversion functions (remove large switch statements) and add tests for ensuring no excess keys when converting.
  2. Rename temporaryPackageInfo to temporaryDisplayPackageInfo.

Context and reason for change

Part of the DisplayPackageInfo refactoring to improve separation between business and display logic.

Fix: #1659

Functions for converting PackageInfo to DisplayPackageInfo and vice
versa are changed to get rid of the large switch blocks. Additionally,
tests are added that ensure that newly added fields to PackageInfo and
DisplayPackageInfo are taken into account.

Signed-off-by: Lennart Holstein <lennart.holstein@tngtech.com>
@lennartclaas lennartclaas changed the title Refactoring 4.5 Adapt PackageInfo conversion functions and rename temporaryPackageInfo May 8, 2023
@benedikt-richter benedikt-richter self-assigned this May 8, 2023
'temporaryDisplayPackageInfo'.

This is part of the 'DisplayPackageInfo' refactoring.

Signed-off-by: Lennart Holstein <lennart.holstein@tngtech.com>
@lennartclaas lennartclaas merged commit bc8f2e8 into opossum-tool:main May 8, 2023
@lennartclaas lennartclaas deleted the refactoring-4.5 branch September 27, 2023 05:58
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.

None yet

2 participants