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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to