kapua icon indicating copy to clipboard operation
kapua copied to clipboard

Allow download and upload of Kura native snapshot

Open lorthirk opened this issue 5 years ago • 7 comments

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 Schermata 2020-02-20 alle 17 08 19 Schermata 2020-02-20 alle 17 08 22

Any side note on the changes made Do we agree on "Native" and "Standard" names?

lorthirk avatar Feb 20 '20 16:02 lorthirk