Files
zeekay 2e29e0db21 rename: it is Hanzo Datastore everywhere, not ClickHouse
The fork half-carried the upstream vendor's name: env vars had been moved to
DATASTORE_*, but every module path, identifier and doc string underneath still
said ClickHouse. A fork that reads like someone else's product in every import
is a vendored copy that never got renamed.

  insights/clickhouse/            -> insights/datastore/
  insights/insightsql/functions/  -> .../functions/datastore/
  products/live_debugger/backend/ -> .../backend/datastore/
  docker/, docs/handbook/         -> datastore/
  CLICKHOUSE_* identifiers        -> DATASTORE_* (164 files)
  manage.py migrate_clickhouse    -> migrate_datastore
  prose, comments, docstrings     -> Datastore (1000+ files)

The ORM moved with it: hanzoai/infi.clickhouse_orm now ships `datastore_orm`,
so consumers write `from datastore_orm import ...` rather than threading the
original vendor's `infi` org namespace through their imports. Repinned here to
that revision.

MIGRATION HISTORY. A package rename orphans the history table, because it keys
on package_name: the runner then sees zero applied migrations, replays from
0001 and dies on 0026. That already happened once here, silently blocking every
datastore migration until the rows were re-keyed by hand. So the rename carries
its own fixup — migrate_datastore now adopts history from prior package names
before migrating, idempotent and a no-op on a fresh database, with the list of
former names as the single place a future rename has to touch. The history
TABLE name is unchanged: it is persisted state, and renaming it is a data
migration rather than a rename.

Left with the vendor's name, because they are the vendor's: clickhouse-driver,
clickhouse-pool and clickhouse-connect are third-party PyPI packages we do not
fork, CLICKHOUSE_SKIP_USER_SETUP and CLICKHOUSE_SERVER_IMAGE configure the
upstream server image, and clickhouse.com doc links point at the real engine's
documentation.

Verified: 4257 Python files parse with 0 syntax errors, no `insights.clickhouse`
or `infi.clickhouse` references survive, and clickhouse_pool/_driver imports are
untouched.
2026-07-26 08:44:50 -07:00

162 lines
5.2 KiB
JSON

[
{
"label": "Backend",
"adapter": "Debugpy",
"request": "launch",
"program": "$ZED_WORKTREE_ROOT/manage.py",
"cwd": "$ZED_WORKTREE_ROOT",
"args": ["runserver"],
"env": {
"PYTHONUNBUFFERED": "1",
"DJANGO_SETTINGS_MODULE": "insights.settings",
"DEBUG": "1",
"DATASTORE_SECURE": "False",
"KAFKA_HOSTS": "localhost",
"DATABASE_URL": "postgres://insights:insights@localhost:5432/insights",
"SKIP_SERVICE_VERSION_REQUIREMENTS": "1",
"PRINT_SQL": "1",
"BILLING_SERVICE_URL": "https://billing.dev.insights.dev",
"CLOUD_DEPLOYMENT": "local"
},
"justMyCode": false
},
{
"label": "Backend (with local billing)",
"adapter": "Debugpy",
"request": "launch",
"program": "$ZED_WORKTREE_ROOT/manage.py",
"cwd": "$ZED_WORKTREE_ROOT",
"args": ["runserver"],
"env": {
"PYTHONUNBUFFERED": "1",
"DJANGO_SETTINGS_MODULE": "insights.settings",
"DEBUG": "1",
"DATASTORE_SECURE": "False",
"KAFKA_HOSTS": "localhost",
"DATABASE_URL": "postgres://insights:insights@localhost:5432/insights",
"SKIP_SERVICE_VERSION_REQUIREMENTS": "1",
"PRINT_SQL": "1",
"BILLING_SERVICE_URL": "http://localhost:8100/",
"CLOUD_DEPLOYMENT": "local"
},
"justMyCode": false
},
{
"label": "Celery Threaded Pool",
"adapter": "Debugpy",
"request": "launch",
"program": "$ZED_WORKTREE_ROOT/manage.py",
"cwd": "$ZED_WORKTREE_ROOT",
"args": ["run_autoreload_celery", "--type=worker"],
"env": {
"SKIP_ASYNC_MIGRATIONS_SETUP": "1",
"DEBUG": "1",
"BILLING_SERVICE_URL": "https://billing.dev.insights.dev",
"SKIP_SERVICE_VERSION_REQUIREMENTS": "1"
},
"justMyCode": true
},
{
"label": "Celery Beat",
"adapter": "Debugpy",
"request": "launch",
"program": "$ZED_WORKTREE_ROOT/manage.py",
"cwd": "$ZED_WORKTREE_ROOT",
"args": ["run_autoreload_celery", "--type=beat"],
"env": {
"SKIP_ASYNC_MIGRATIONS_SETUP": "1",
"DEBUG": "1",
"BILLING_SERVICE_URL": "https://billing.dev.insights.dev",
"SKIP_SERVICE_VERSION_REQUIREMENTS": "1"
},
"justMyCode": true
},
{
"label": "Temporal Worker",
"adapter": "Debugpy",
"request": "launch",
"program": "$ZED_WORKTREE_ROOT/manage.py",
"cwd": "$ZED_WORKTREE_ROOT",
"args": ["start_temporal_worker", "--task-queue", "development-task-queue"],
"env": {
"PYTHONUNBUFFERED": "1",
"DJANGO_SETTINGS_MODULE": "insights.settings",
"DEBUG": "1",
"DATASTORE_SECURE": "False",
"KAFKA_HOSTS": "localhost",
"DATABASE_URL": "postgres://insights:insights@localhost:5432/insights",
"SKIP_SERVICE_VERSION_REQUIREMENTS": "1",
"PRINT_SQL": "1"
},
"justMyCode": false
},
{
"label": "Backend (Attach to bin/start)",
"adapter": "Debugpy",
"request": "attach",
"connect": {
"host": "localhost",
"port": 5678
},
"pathMappings": [
{
"localRoot": "$ZED_WORKTREE_ROOT",
"remoteRoot": "$ZED_WORKTREE_ROOT"
}
],
"justMyCode": false
},
{
"label": "Pytest: Current File",
"adapter": "Debugpy",
"request": "launch",
"module": "pytest",
"cwd": "$ZED_WORKTREE_ROOT",
"args": ["$ZED_FILE", "-vvv"],
"justMyCode": true
},
{
"label": "Python: Debug Tests",
"adapter": "Debugpy",
"request": "launch",
"program": "$ZED_FILE",
"cwd": "$ZED_WORKTREE_ROOT",
"justMyCode": false
},
{
"label": "Django Migrations",
"adapter": "Debugpy",
"request": "launch",
"program": "$ZED_WORKTREE_ROOT/manage.py",
"cwd": "$ZED_WORKTREE_ROOT",
"args": ["migrate", "insights"],
"env": {
"PYTHONUNBUFFERED": "1",
"DJANGO_SETTINGS_MODULE": "insights.settings",
"DEBUG": "1",
"DATASTORE_SECURE": "False",
"KAFKA_HOSTS": "localhost",
"DATABASE_URL": "postgres://insights:insights@localhost:5432/insights",
"SKIP_SERVICE_VERSION_REQUIREMENTS": "1",
"PRINT_SQL": "1",
"BILLING_SERVICE_URL": "http://localhost:8100/",
"CLOUD_DEPLOYMENT": "local"
},
"justMyCode": false
},
{
"label": "Dagster: Debug Dagit UI",
"adapter": "Debugpy",
"request": "launch",
"module": "dagster",
"cwd": "$ZED_WORKTREE_ROOT",
"args": ["dev", "--workspace", "$ZED_WORKTREE_ROOT/.dagster_home/workspace.yaml"],
"env": {
"DAGSTER_HOME": "$ZED_WORKTREE_ROOT/.dagster_home",
"DAGSTER_UI_PORT": "3030",
"DEBUG": "1"
},
"justMyCode": true
}
]