-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat!: added adapter config to TlcAdapter #18
Conversation
janniclas
commented
Sep 2, 2024
•
edited
Loading
edited
- removed KpiAdapter interface
- added configuration to TlcAdapter
- fixed missing recursive call in technical lag calculation
- added missing test cases
- breaking: removed KpiAdapter interface
- enables us to provide additional information for the calculated KPIs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to remove the SupportedTools enum too?
|
||
enum class ErrorType { DATA_VALIDATION_ERROR } | ||
|
||
sealed class AdapterResult { | ||
data class Success(val rawValueKpi: RawValueKpi) : AdapterResult() | ||
sealed class Success(val rawValueKpi: RawValueKpi) : AdapterResult() { | ||
class Kpi(rawValueKpi: RawValueKpi) : Success(rawValueKpi) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you want these to be data classes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes but it was complicated.. :D
the following code is not allowed:
data class Kpi(override val rawValueKpi: RawValueKpi) : Success(rawValueKpi)
as we may not have override modifiers in primary constructors. We also must only have val / var in primary constructors. So we can't do the pattern we do with a class class Kpi(rawValueKpi: RawValueKpi) : Success(rawValueKpi)
and "hand down" the rawValueKpi to its superclass.
SupportedTools.kt was removed |
…ts before we can upload them