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:
Beto Dealmeida
2020-11-24 22:45:35 -08:00
committed by GitHub
parent e4d02881d2
commit 501b9d47c5
19 changed files with 272 additions and 23 deletions

View File

@@ -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}));",