:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore: use ReleaseStatus enum for warehouse source release status (#60893)
Tom Owers90797d793610
diff --git a/.agents/skills/implementing-warehouse-sources/SKILL.md b/.agents/skills/implementing-warehouse-sources/SKILL.mdindex c6991da6c30d..a5f215eb50da 100644--- a/.agents/skills/implementing-warehouse-sources/SKILL.md+++ b/.agents/skills/implementing-warehouse-sources/SKILL.md@@ -77,7 +77,7 @@ Follow this order. Each step maps to TODOs in `source.template`.10. **Add icon.** Place at `frontend/public/services/{source}.svg` (prefer SVG). If the logo isn't already committed, fetch from [Logo.dev](https://docs.logo.dev/introduction) — **ask the user for the Logo.dev API key**; do not hardcode one. Keep file size reasonable.11. **Run migrations.** `DEBUG=1 python manage.py makemigrations && DEBUG=1 ./bin/migrate` (only needed if a new enum value triggers a Django migration).12. **Rebuild schema types**: `pnpm run schema:build`. This updates `posthog/schema.py` from `schema-general.ts` and makes the source appear in frontend dropdowns. Re-run whenever `schema-general.ts` changes.-13. **Release status.** For unfinished work, set `unreleasedSource=True`. Set `releaseStatus="alpha"` for new sources that haven't been extensively tested, `releaseStatus="beta"` once most rough edges are ironed out, and leave `releaseStatus` unset for general availability. For controlled rollout, set `featureFlag="dwh-{source_name}"` (kebab-case). When fully releasing, remove `unreleasedSource`, set `releaseStatus` to the appropriate stage (or omit for GA), and optionally drop the feature flag.+13. **Release status.** Whenever you set `releaseStatus`, use the `ReleaseStatus` enum from `posthog.schema` — never a bare string literal. Add `ReleaseStatus` to your existing `from posthog.schema import (...)` block, then use `releaseStatus=ReleaseStatus.ALPHA` for new sources that haven't been extensively tested, `releaseStatus=ReleaseStatus.BETA` once most rough edges are ironed out, and `releaseStatus=ReleaseStatus.GA` for general availability (you may also leave `releaseStatus` unset for GA). For unfinished work, set `unreleasedSource=True`. For controlled rollout, set `featureFlag="dwh-{source_name}"` (kebab-case). When fully releasing, remove `unreleasedSource`, set `releaseStatus` to the appropriate stage (`ReleaseStatus.GA` or omit it), and optionally drop the feature flag.14. **Delete the template TODO comments** before PR.## Source architecture contract@@ -413,9 +413,10 @@ Tooling & assets:Release status:- [ ] unreleasedSource=True while WIP-- [ ] releaseStatus="alpha" for new sources not yet extensively tested-- [ ] releaseStatus="beta" when most rough edges have been ironed out-- [ ] Omit releaseStatus (or set to "ga") on full release+- [ ] When set, releaseStatus uses the `ReleaseStatus` enum, never a string literal+- [ ] releaseStatus=ReleaseStatus.ALPHA for new sources not yet extensively tested+- [ ] releaseStatus=ReleaseStatus.BETA when most rough edges have been ironed out+- [ ] releaseStatus=ReleaseStatus.GA (or omit it) on full release- [ ] featureFlag="dwh-{source_name}" for controlled rollout- [ ] Flag removed / unreleasedSource removed on full release