Skip to content

HDXDSYS-3045 Use Mixpanel service account, update min versions - #15

Merged
mcarans merged 1 commit into
mainfrom
mixpanel-service-account
Dec 3, 2026
Merged

mcarans merged 1 commit into
mainfrom
mixpanel-service-account

Conversation

@mcarans

@mcarans mcarans commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Mixpanel auth now uses a service account. `mixpanel-utils` 3.0.0 no longer accepts `api_secret`; `token` is dropped as it is only needed for imports.
  • Env vars / GitHub secrets: `MIXPANEL_SERVICE_ACCOUNT_USERNAME`, `MIXPANEL_SERVICE_ACCOUNT_SECRET`, `MIXPANEL_PROJECT_ID`. `~/.mixpanel.yaml` keys: `service_account_username`, `service_account_secret`, `project_id`. README updated.
  • Min versions raised: hdx-python-api 6.8.0, hdx-python-country 4.3.1, hdx-python-utilities 4.2.8; `uv.lock` upgraded.
  • `github-pages-deploy-action` pinned to the v4.9.0 SHA; workflow names title-cased to match hdx-scraper-copier.
  • LICENSE year 2026.

Before merging

  • Add GitHub secrets `MIXPANEL_SERVICE_ACCOUNT_USERNAME` and `MIXPANEL_SERVICE_ACCOUNT_SECRET` (the old `MIXPANEL_API_SECRET` and `MIXPANEL_TOKEN` can then be removed).
  • Update local `~/.mixpanel.yaml` to the new keys.

Testing

Pre-commit and pytest pass. Tests mock `Downloads`, so the Mixpanel call itself has not been run; suggest a manual run with `--saved_dir`.

- Switch Mixpanel auth from API secret to service account (mixpanel-utils 3.0.0 no longer accepts api_secret); drop unused token
- Rename env vars/secrets to MIXPANEL_SERVICE_ACCOUNT_USERNAME and MIXPANEL_SERVICE_ACCOUNT_SECRET
- Raise min versions of hdx-python-api, hdx-python-country, hdx-python-utilities and upgrade uv.lock
- Pin github-pages-deploy-action to SHA and title-case workflow names, as in hdx-scraper-copier
- LICENSE year 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Test Results

2 tests  ±0   2 ✅ ±0   1m 5s ⏱️ -18s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit c35759e. ± Comparison against base commit b5461cd.

♻️ This comment has been updated with latest results.

@mcarans
mcarans merged commit 749f356 into main Dec 3, 2026
6 checks passed
@mcarans mcarans changed the title Use Mixpanel service account, update min versions HDXDSYS-3045 Use Mixpanel service account, update min versions Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant