chore(tasks): remove code home, workstream grouping, and auto runs - #72861
Conversation
Deletes the server side of the PostHog Code Home Tab: the code_home/code_workflow viewsets and routes, the code_workstreams logic and Temporal packages (workflows, activities, 3-minute schedule, on-demand trigger), the CodeWorkflowConfig/CodePrSnapshot/CodeWorkstream models (state-only migration; tables dropped in a follow-up), the home_quick_action run field, and the diagnostic management command. Regenerates OpenAPI-derived frontend/MCP types. Generated-By: PostHog Code Task-Id: 98bddaa7-c8c3-4e21-aa95-9712d59f2404
|
Hey @k11kirky! 👋 It looks like your git author email on this PR isn't your
You can fix it for this repo with: git config user.email "you@posthog.com"Or set it globally with |
🤖 CI report✅ Bundle size — no changeUncompressed size of every built Total: 64.59 MiB · no change No file changed by more than 1000 B. Posted automatically by build-bundle-size-report · uncompressed bytes from dist-report ✅ Eager graph — within budgetHow much code each root ships on the eager path — downloaded and parsed before the surface is interactive. Measured from the esbuild output chunks (post-tree-shake, static imports only); lazy
🟢 Largest files eagerly shipped from
|
| Size | File |
|---|---|
| 126.8 KiB | ../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.production.min.js |
| 24.6 KiB | ../node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js |
| 6.3 KiB | ../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js |
| 4.5 KiB | ../node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/process.js |
| 3.9 KiB | ../node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/cjs/scheduler.production.min.js |
| 1.4 KiB | ../node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js |
| 1.3 KiB | src/RootErrorBoundary.tsx |
| 912 B | ../node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js |
| 789 B | src/scenes/ChunkLoadErrorBoundary.tsx |
| 762 B | src/index.tsx |
Largest files eagerly shipped from src/scenes/AuthenticatedShell.tsx
| Size | File |
|---|---|
| 281.3 KiB | ../node_modules/.pnpm/posthog-js@1.405.2/node_modules/posthog-js/dist/rrweb.js |
| 267.7 KiB | ../node_modules/.pnpm/@posthog+icons@0.38.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@posthog/icons/dist/posthog-icons.es.js |
| 236.0 KiB | src/taxonomy/core-filter-definitions-by-group.json |
| 224.4 KiB | ../node_modules/.pnpm/posthog-js@1.405.2/node_modules/posthog-js/dist/module.js |
| 167.1 KiB | src/queries/validators.js |
| 154.3 KiB | ../node_modules/.pnpm/re2js@0.4.1/node_modules/re2js/build/index.esm.js |
| 126.8 KiB | ../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.production.min.js |
| 106.2 KiB | src/lib/api.ts |
| 94.0 KiB | ../packages/quill/packages/quill/dist/index.js |
| 93.3 KiB | ../node_modules/.pnpm/prosemirror-view@1.40.1/node_modules/prosemirror-view/dist/index.js |
Posted automatically by check-eager-graph · sizes are eager output bytes (shipped, post-tree-shake) from the esbuild metafile · part of #32479
✅ Toolbar bundle — eager 2.18 MiB within budget
What the toolbar ships to customer pages, measured from the esbuild output (minified, post-tree-shake). The eager set is the entry plus everything statically imported from it — fetched before any feature runs; deferred chunks load lazily. The eager guardrail is 5.72 MiB. Each output file must also stay below 10 MB, where CloudFront stops compressing it. The module boundary is enforced separately by check-toolbar-graph.
| Metric | Size | Δ vs base | Budget |
|---|---|---|---|
| Eager (shipped) entry + static imports |
2.18 MiB · 17 files | no change | ████░░░░░░ 38.1% of 5.72 MiB |
| Deferred (lazy) | 2.07 MiB · 33 files | no change | n/a — loads on demand |
Loader dist/toolbar.js |
1.1 KiB | no change | █░░░░░░░░░ 5.8% of 19.5 KiB |
Largest eagerly-shipped chunks
| Size | File |
|---|---|
| 713.2 KiB | dist/toolbar/toolbar-app-DW4OA6K5.css |
| 543.1 KiB | dist/toolbar/chunk-chunk-ENG57SBM.js |
| 484.2 KiB | dist/toolbar/chunk-chunk-L423YPH4.js |
| 133.7 KiB | dist/toolbar/chunk-chunk-FZEUL63W.js |
| 131.8 KiB | dist/toolbar/chunk-chunk-T5KY5WYR.js |
| 71.0 KiB | dist/toolbar/toolbar-app-B3ILDDZB.js |
| 69.0 KiB | dist/toolbar/chunk-chunk-27JL52RE.js |
| 35.6 KiB | dist/toolbar/chunk-chunk-KAXCIORH.js |
| 20.9 KiB | dist/toolbar/chunk-chunk-UOJKKCU2.js |
| 12.2 KiB | dist/toolbar/chunk-chunk-PIK3PADE.js |
Posted automatically by check-toolbar-size · sizes are toolbar output bytes (shipped, post-tree-shake) from the esbuild metafile
✅ Dist folder size — 🟢 -549 B (-0.0%)
Total size of the built frontend/dist folder (all assets), compared against the base branch.
Total: 1356.68 MiB · 🟢 -549 B (-0.0%)
⚠️ Django migration SQL — 1 new migration to review
We've detected new migrations on this PR. Review the SQL output for each migration:
products/tasks/backend/migrations/0069_remove_code_home_models.py
BEGIN;
--
-- Custom state/database change combination
--
-- (no-op)
COMMIT;Last updated: 2026-07-22 13:59 UTC (99392b8)
✅ Django migration risk — migration analysis complete
We've analyzed your migrations for potential risks.
Summary: 1 Safe | 0 Needs Review | 0 Blocked
✅ Safe
Brief or no lock, backwards compatible
tasks.0069_remove_code_home_models
└─ #1 ✅ SeparateDatabaseAndState: Only state operations (no database changes)
Last updated: 2026-07-22 14:00 UTC (99392b8)
🦔 Hogbox preview · ❌ build failedThe preview didn't come up for commit Previews are optional and never block merging. A failure here is often a hogland or tailnet hiccup rather than anything in your PR, so the check stays green and this comment is the status. |
|
Reviews (1): Last reviewed commit: "chore(tasks): remove code home, workstre..." | Re-trigger Greptile |
Generated-By: PostHog Code Task-Id: 98bddaa7-c8c3-4e21-aa95-9712d59f2404
Problem
The PostHog Code Home Tab — with its workstream grouping and auto-run workflow actions — is being removed from the product. This PR removes its server side; the client side is removed in PostHog/code#3692.
Changes
code_home/code_workflowviewsets and their project-router registrations.logic/code_workstreams/package (grouping, situation classification, binding validation, default workflow) and thetemporal/code_workstreams/package (theevaluate-code-workstreamsparent/child workflows, their five activities, the 3-minute schedule, and the on-demand trigger client), plus theevaluate_code_workstreamsmanagement command.CodeWorkflowConfig,CodePrSnapshot, andCodeWorkstreammodels with a state-only migration (SeparateDatabaseAndState); the tables stay in place for a follow-upRunSQLdrop after a deploy cycle, per the safe-migrations handbook.home_quick_actionrun-bootstrap serializer field, itsRunStatefield, and its handling inbootstrap_task_run; regenerate the OpenAPI-derived types (api.schemas.ts,api.zod.ts, MCPgenerated.ts).posthog/temporal/schedule.py.Deploy notes: the
evaluate-code-workstreams-scheduleTemporal schedule stops being (re)created by bootstrap but the existing schedule object should be deleted manually in Temporal; any in-flightevaluate-code-workstreamsexecutions will fail replay once workers deploy without the workflow registered (they are 3-minutely, short-lived scans, so this is acceptable).How did you test this code?
Automated checks run by the agent (no manual testing):
manage.py makemigrations --check --dry-run— no drift;sqlmigrate tasks 0069renders as a state-only no-op.django.setup().ruff check/ruff format,tach check --dependencies --interfaces, andhogli ci:preflight --fix— all green, 0 failures.hogli build:openapi— regenerated types; diff is exactly the removed field.Automatic notifications
Docs update
No docs under
docs/reference the removed endpoints or models.🤖 Agent context
Autonomy: Human-driven (agent-assisted)
/django-migrations(state-only model deletion pattern) and the repo's temporal-workflow-versioning and product-isolation rules.0037/0039migrations and cross-app migration dependencies untouched, and leftproducts/review_hog/DECISIONS.md(an append-only design-history record) as-is.DeleteModelmigration over a table drop so the removal is deploy-safe; the drop is deferred to a follow-up.Created with PostHog Code