astarte-platform / astarte

Core Astarte Repository
https://docs.astarte-platform.org/
Apache License 2.0
240 stars 50 forks source link

Refactor: xml generation and type handling #1025

Open Jusuf95 opened 15 hours ago

Jusuf95 commented 15 hours ago

Enhancements to XML and data type handling in astarte/tools/astarte_export

Improvements to XML generation:

astarte/tools/astarte_export/lib/xml_generate.ex:

Improvements to data type conversion:

astarte/tools/astarte_export/lib/fetchdata/fetchdata.ex:

What this PR does / why we need it:

The primary goal of these changes is to improve the flexibility and robustness of the XML generation and data conversion processes in the Astarte Export tool. This ensures seamless handling of various data types and structures, improving overall data export functionality.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Please review the changes in both xml_generate.ex and fetchdata.ex for alignment with existing coding standards.

Does this PR introduce a user-facing change?

Additional documentation e.g. usage docs, diagrams, etc.: