Alerting: Need better regression tests for DTO conversions #53689
Labels
area/alerting
Grafana Alerting
internal
for issues made by grafanistas
prio/low
It's a good idea, but not scheduled for any release
type/debt
technical debt
Unified Alerting has a lot of Data Transfer Objects (DTOs), in some cases we have separate DTOs for the same object (prom vs DB vs API, etc).
We write functions to convert between DTOs representing the same concept, but these functions often are not deeply tested on every field. These conversion functions are a common source of type mapping bugs. We should ensure that our DTO conversions are properly tested and assert on every field.
The text was updated successfully, but these errors were encountered: