mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
feat: API endpoint to import dashboards (#11751)
* ImportChartsCommand * feat: add a command to import dashboards * feat: API endpoint to import dashboards * Add dispatcher * Raise specific exception * Fix test * Remove print calls * Add logging when passing
This commit is contained in:
2
tests/fixtures/importexport.py
vendored
2
tests/fixtures/importexport.py
vendored
@@ -103,7 +103,7 @@ dataset_config: Dict[str, Any] = {
|
||||
|
||||
chart_config: Dict[str, Any] = {
|
||||
"params": {
|
||||
"color_picker": {"a": 1, "b": 135, "g": 122, "r": 0,},
|
||||
"color_picker": {"a": 1, "b": 135, "g": 122, "r": 0},
|
||||
"datasource": "12__table",
|
||||
"js_columns": ["color"],
|
||||
"js_data_mutator": r"data => data.map(d => ({\n ...d,\n color: colors.hexToRGB(d.extraProps.color)\n}));",
|
||||
|
||||
Reference in New Issue
Block a user