mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
feat: Adds Sunburst chart migration logic (#25343)
This commit is contained in:
committed by
GitHub
parent
9bd97ef4f2
commit
0c083bdc1a
@@ -28,6 +28,7 @@ class VizType(str, Enum):
|
||||
DUAL_LINE = "dual_line"
|
||||
AREA = "area"
|
||||
PIVOT_TABLE = "pivot_table"
|
||||
SUNBURST = "sunburst"
|
||||
|
||||
|
||||
@click.group()
|
||||
@@ -76,6 +77,7 @@ def migrate(viz_type: VizType, is_downgrade: bool = False) -> None:
|
||||
MigrateAreaChart,
|
||||
MigrateDualLine,
|
||||
MigratePivotTable,
|
||||
MigrateSunburst,
|
||||
MigrateTreeMap,
|
||||
)
|
||||
|
||||
@@ -84,6 +86,7 @@ def migrate(viz_type: VizType, is_downgrade: bool = False) -> None:
|
||||
VizType.DUAL_LINE: MigrateDualLine,
|
||||
VizType.AREA: MigrateAreaChart,
|
||||
VizType.PIVOT_TABLE: MigratePivotTable,
|
||||
VizType.SUNBURST: MigrateSunburst,
|
||||
}
|
||||
if is_downgrade:
|
||||
migrations[viz_type].downgrade(db.session)
|
||||
|
||||
Reference in New Issue
Block a user