ebauch edited a comment on issue #8322:
URL: 
https://github.com/apache/incubator-superset/issues/8322#issuecomment-633376338


   Same issue here. It has likely todo with the json format being changed when 
switching versions. I exported dashboards from 0.30.0 and tried to import into 
a new instance of 0.36. The specific error in the console was (use --debugger) 
on import
   
   ```
   TypeError: 'is_restricted' is an invalid keyword argument for SqlMetric
   ```
   So I opened the exported json file and deleted all rows with "is_restricted" 
keys. An example is shown below. 
   
   ```
   "d3format": null,
                               "description": null,
                               "expression": "count(*)",
                               "id": 2,
                               "is_restricted": false,
                               "metric_name": "",
                               "metric_type": null,
                               "table_id": 1,
                               "verbose_name": "count(*)",
                               "warning_text": null
   ```
   This resolved the issue for me and the dashboard file imported successfully. 


----------------------------------------------------------------
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.

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