Library CveAdapter
Summary
Extracted first data models and transformation code from the backend in the dedicated library.
Description
The goal of this MR is to work as a blue print of how to extract code from our existing main project in app/backend into the new library modules in kpiCalculator. Therefore, we extracted a first adapter class and its corresponding model files. For a more complex example of code extraction, namely the KPI calculation, see !21 (merged).
In detail, this MR
- introduces model and adapter modules inside the KpiCalculator library
- updates dependency definitions (using libs.versions.toml according to Kotlin / Gradle best practices)
- moves code to transform VulnerabilityDtos into RawValueKpis into kpiCalculator/adapter
- moves necessary model files into kpiCalculator/model
- separates the code to generate ViewModels from e.g. KpiKind in the backend
Edited by Jan-Niclas Strüwer