Open Etsija opened 3 months ago
we are currently required to duplicate the list of the available package managers for the Analyzer
This becomes esp. important once https://github.com/eclipse-apoapsis/ort-server/issues/377 is implemented, as additional package manager plugins for the analyzer could be added dynamically.
In create run form of the ORT Server UI, we are currently required to duplicate the list of the available package managers for the Analyzer, and subsequently, a list or report formats for Reporter. This requires manual code maintenance, which is not optimal.
In V1 API 's data model (
Repository.kt
), the repository types are specified with an enum classThis generates an enum type for UI query schemas, which we can use straight away.
In
AnalyzerJobConfiguration()
data class (JobConfigurations.kt
), enum type is not used for package managers, but ratherso the list of possible package managers is not exposed to the UI.
Same goes for
ReporterJobConfiguration()
, where the report formats are specified asIt should be investigated, whether the list of available package managers and report formats could be specified with enum types, which could then be used in the UI directly, without manual maintenance.
There are some other examples in the data model, where enum types would be of use to the UI, for example