kapua
kapua copied to clipboard
Allow download and upload of Kura native snapshot
Currently, Device Snapshots downloaded from the Console or REST APIs cannot be directly applied to a Kura device, since the XML that is downloaded from the Console has a different format the one that Kura can deserialize. With this PR, bot "Standard" (old format) and "Native" (new, Kura-compatible format) snapshots can be both dowloaded and uploaded from the console. Native snapshots can also be directly applied to a device from the Kura console.
Related Issue Fixes #2704
Description of the solution adopted
Translation logic has been extracted from TranslatorAppConfigurationKuraKapua
and TranslatorAppConfigurationKapuaKura
to a utility class named KuraDeviceConfigurationUtils
, in the kapua-device-call-kura
module. The same logic is also called from the Download and Upload servlets to do necessary conversions.
Screenshots
Any side note on the changes made Do we agree on "Native" and "Standard" names?