It think we could fix this by further improving the import_dashboard function to handle multiple data types. Check if 'dashboard' is a string, then attempt to convert it into a dictionary with json.loads; if that fails then it can return the its 'success' status and the reason being "cannot convert strng to json"
Logging needs to be implemented in the reactive code for import_dashboards to report the import status and reason, in any case.
It think we could fix this by further improving the import_dashboard function to handle multiple data types. Check if 'dashboard' is a string, then attempt to convert it into a dictionary with json.loads; if that fails then it can return the its 'success' status and the reason being "cannot convert strng to json"
Logging needs to be implemented in the reactive code for import_dashboards to report the import status and reason, in any case.