mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
feat!: pass datasource_type and datasource_id to form_data (#19981)
* pass datasource_type and datasource_id to form_data * add datasource_type to delete command * add datasource_type to delete command * fix old keys implementation * add more tests
This commit is contained in:
committed by
GitHub
parent
a813528958
commit
32bb1ce3ff
@@ -18,6 +18,7 @@ import json
|
||||
|
||||
from superset import db
|
||||
from superset.models.slice import Slice
|
||||
from superset.utils.core import DatasourceType
|
||||
|
||||
from .birth_names import load_birth_names
|
||||
from .helpers import merge_slice, misc_dash_slices
|
||||
@@ -35,7 +36,7 @@ def load_multi_line(only_metadata: bool = False) -> None:
|
||||
]
|
||||
|
||||
slc = Slice(
|
||||
datasource_type="table", # not true, but needed
|
||||
datasource_type=DatasourceType.TABLE, # not true, but needed
|
||||
datasource_id=1, # cannot be empty
|
||||
slice_name="Multi Line",
|
||||
viz_type="line_multi",
|
||||
|
||||
Reference in New Issue
Block a user