1.1 KiB
1.1 KiB
Quickstart: Git Integration Plugin
Setup
-
Install Dependencies:
cd backend && .venv/bin/pip install GitPython -
Configure Git Server:
- Go to Settings -> Git Integration
- Click "Add Server"
- Select Provider (e.g., GitLab)
- Enter Server URL and Personal Access Token (PAT)
- Click "Test Connection" and "Save"
-
Link Dashboard to Git:
- Navigate to the Dashboard view
- Select a dashboard
- Click "Enable Git Integration"
- Select the Git server and provide repository path (e.g.,
my-org/my-dashboard-repo)
Common Workflows
Versioning Changes
- Make changes to the dashboard in Superset.
- In the Git Integration panel, click "Commit".
- Enter a commit message and select files (metadata, charts, etc.).
- Click "Push" to sync with remote.
Branching
- Click "New Branch".
- Enter branch name (e.g.,
feature/new-charts). - The dashboard state is now tracked on this branch.
Deployment
- Ensure changes are committed and pushed.
- Click "Deploy".
- Select target environment (e.g., "Production").
- Monitor deployment logs for success.