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:
2026-02-10 23:51:38 +03:00
parent 6533f8b32c
commit 22f08382e5
7 changed files with 71 additions and 18 deletions
+3 -1
View File
@@ -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: