豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit bfe55b9

Browse files
fix: Volatile datasource ordering in dashboard export (#19595)
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
1 parent 72a41c1 commit bfe55b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

superset/models/dashboard.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,11 @@ def export_dashboards( # pylint: disable=too-many-locals
365365
copied_dashboard.alter_params(remote_id=dashboard_id)
366366
copied_dashboards.append(copied_dashboard)
367367

368+
datasource_id_list = list(datasource_ids)
369+
datasource_id_list.sort()
370+
368371
eager_datasources = []
369-
for datasource_id, _ in datasource_ids:
372+
for datasource_id, _ in datasource_id_list:
370373
eager_datasource = SqlaTable.get_eager_sqlatable_datasource(datasource_id)
371374
copied_datasource = eager_datasource.copy()
372375
copied_datasource.alter_params(

0 commit comments

Comments
 (0)