Actions
Bug #27035
openReportType json serialization in base is incorrect
Status:
Pending release
Priority:
N/A
Assignee:
Category:
Architecture - Code maintenance
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No
Description
When we serialize ReportType in base, for last node compliance for ex, we get:
"rt" : { "EnforceRepaired" : {} },
But we really want:
"rt" : "EnforceRepaired",
We do have the first case tested in JsonPostresqlSerializationTest because it was dump from base, and we missed that bit.
Ideally, a correction would be able to deserialize both case and produce only the second.
WARNING: the automatic derivation changes in Scala3 to match what we want, but it means that we need to check all our sealed trait auto-derived encoder (I think it's the only one, but hard to grep)
Actions