With the recent change of handling election data in its own class, the old Utils.mergeObjectTo function is a bit deprecated, and I should add a way to merge response data payloads to the election data object.
Therefore, a new method should be added to the ElectionData to parse response objects and translate their data entried into class attributes.
Until then, this bug prevents the usage of shared elections, as the election data class methods are lost when using the mergeObjectTo (it transforms the ElectionData to an object).
With the recent change of handling election data in its own class, the old
Utils.mergeObjectTo
function is a bit deprecated, and I should add a way to merge response data payloads to the election data object.Therefore, a new method should be added to the
ElectionData
to parse response objects and translate their data entried into class attributes.Until then, this bug prevents the usage of shared elections, as the election data class methods are lost when using the
mergeObjectTo
(it transforms the ElectionData to an object).