Parzi68 commented on issue #29871:
URL: https://github.com/apache/superset/issues/29871#issuecomment-2530526317

   @Qambitions Try this code for the positions issue:
   
   # Parse json_metadata
       try:
           json_meta = json.loads(dashboard_data.get("json_metadata", "{}"))
       except json.JSONDecodeError:
           json_meta = {}
   
       # Parse position_json
       try:
           positions = json.loads(dashboard_data.get("position_json", "{}")) if 
dashboard_data.get("position_json") else {}
       except json.JSONDecodeError:
           positions = {}
   
       # Ensure positions is added to json_metadata
       json_meta["positions"] = positions


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to