Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KH-539: Add support for importing Superset dashboards #72

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
9 changes: 6 additions & 3 deletions distro/configs/superset/superset-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ if [ "$SUPERSET_LOAD_EXAMPLES" = "yes" ]; then
fi
echo_step "4" "Complete" "Loading examples"
fi
echo_step "5" "Complete" "Loading datasources"
echo_step "5" "Start" "Loading datasources"
superset import-datasources -p /etc/superset/datasources/datasources.yaml
echo_step "5" "Complete" "Loading datasources"
echo_step "6" "Complete" "Updating datasources"
echo_step "6" "Start" "Updating dashboards"
superset import-directory /dashboards -f -o
echo_step "6" "Complete" "Updating dashboards"
echo_step "7" "Start" "Updating datasources"
superset set_database_uri -d $ANALYTICS_DATASOURCE_NAME -u postgresql://$ANALYTICS_DB_USER:$ANALYTICS_DB_PASSWORD@$ANALYTICS_DB_HOST:5432/$ANALYTICS_DB_NAME
echo_step "6" "Complete" "Updating datasources"
echo_step "7" "Complete" "Updating datasources"
1 change: 1 addition & 0 deletions distro/configs/superset/superset_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,4 @@ def __call__(self, environ, start_response):

ADDITIONAL_MIDDLEWARE = [ReverseProxied, ]
ENABLE_PROXY_FIX = True
PREVENT_UNSAFE_DB_CONNECTIONS = False
Loading