1.5 KiB
1.5 KiB
Quickstart: Git Integration for Dashboards
Prerequisites
- A running Superset instance.
- A Git repository (GitLab, GitHub, etc.) created for your dashboard.
- A Personal Access Token (PAT) with
reposcope.
Setup Guide
1. Configure Git Connection
- Navigate to the Git Integration tab in the tools menu.
- Select your Dashboard from the dropdown.
- Enter your Git Provider details:
- Repo URL:
https://github.com/myorg/sales-dashboard.git - Username:
myuser - PAT:
ghp_xxxxxxxxxxxx
- Repo URL:
- Click Save & Connect. The system will clone the repository.
2. Development Workflow
Making Changes
- Edit your dashboard in Superset as usual.
- Go to the Git Integration panel.
- Click Sync Status. This pulls the latest state from Superset and compares it with the Git repo.
- You will see a list of changed files (e.g.,
charts/my-chart.yaml).
Committing
- Select the files you want to include.
- Enter a commit message.
- Click Commit.
Pushing
- Click Push to send your changes to the remote repository.
3. Branching
- To work on a new feature, go to the Branches tab.
- Enter a name (e.g.,
feature/Q4-updates) and click Create Branch. - The system automatically switches to this branch.
4. Deploying
- Switch to the Deploy tab.
- Select the target environment (e.g., "Production").
- Click Deploy. The current version of the dashboard will be imported into the target environment.