astarte-platform / astarte-dashboard

Astarte dashboard
http://astarte-platform.org
Apache License 2.0
17 stars 15 forks source link

Ensure Dashboard does not crash for unexpected data from Astarte #427

Open davidebriani opened 4 months ago

davidebriani commented 4 months ago

The Dashboard currently performs strict parsing on data coming from queries to Astarte. When data cannot be correctly parsed, the entire query is failed and this results in an error loading the page.

This approach results in an unusable frontend when some unexpected data is present in Astarte. This may happen not only for erroneous data, but also if Astarte services expose newer features that the Dashboard does not support.

A more practical approach should be evaluated for receiving data from Astarte and displaying it to the user.