fix(superset): align bootstrap with clickhousedb uri
- Why: - Superset bootstrap used outdated ClickHouse URI format and did not fail fast on init errors. - docs and exported dashboard metadata diverged from runtime connection settings. - What: - build ClickHouse URI from env vars and use clickhousedb:// in init script. - refresh dataset metadata on existing datasets and surface import errors. - run create_dashboard during superset-init startup and align docs/exported URI references. - ignore node_modules in git. - Check: - python3 -m py_compile superset/init_superset.py - manual dashboard smoke check in UI (charts render)
This commit is contained in:
+3
-1
@@ -273,7 +273,9 @@ services:
|
||||
echo 'Initializing roles...' &&
|
||||
superset init &&
|
||||
echo 'Creating ClickHouse connection and datasets...' &&
|
||||
python /app/superset_init/init_superset.py || true &&
|
||||
python /app/superset_init/init_superset.py &&
|
||||
echo 'Creating dashboard and charts...' &&
|
||||
python /app/superset_init/create_dashboard.py &&
|
||||
echo 'Superset initialized successfully'
|
||||
"
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user