From 500d4623ba40595ca162c514d0a0d31578a2827a Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Mon, 21 Mar 2022 13:15:50 +0100 Subject: [PATCH] refactor: Yeet `PRIMARY_DB` (#9017) * refactor: Yeet `PRIMARY_DB` * Remove `db_backend` * Eliminate "Analytics database in use" * Satisfy mypy --- .run/Celery.run.xml | 4 +- .run/Plugin Server.run.xml | 3 +- .run/PostHog.run.xml | 4 +- bin/e2e-test-runner | 1 - bin/plugin-server | 4 +- bin/start | 1 - cypress/fixtures/_preflight.json | 1 - cypress/fixtures/_system_status.json | 1 - docker-compose.hobby.yml | 1 - ee/clickhouse/client.py | 194 ++++++++---------- ee/pytest.ini | 1 - ee/settings.py | 6 +- .../src/mocks/fixtures/_system_status.json | 1 - frontend/src/types.ts | 1 - package.json | 4 +- plugin-server/package.json | 2 +- posthog/api/instance_status.py | 4 - posthog/api/test/test_preflight.py | 19 +- posthog/migrations/0187_stale_events.py | 29 +-- posthog/settings/celery.py | 8 +- posthog/settings/data_stores.py | 3 - posthog/settings/overrides.py | 9 - posthog/settings/service_requirements.py | 8 +- posthog/settings/shell_plus.py | 5 +- posthog/tasks/test/test_org_usage_report.py | 3 +- posthog/tasks/test/test_update_cache.py | 89 ++++---- posthog/views.py | 1 - task-definition.migration.json | 4 - task-definition.web.json | 4 - task-definition.worker.json | 4 - 30 files changed, 161 insertions(+), 258 deletions(-) diff --git a/.run/Celery.run.xml b/.run/Celery.run.xml index 2e9d7c0512d..d56e8fe2bc6 100644 --- a/.run/Celery.run.xml +++ b/.run/Celery.run.xml @@ -6,8 +6,6 @@ - - @@ -28,4 +26,4 @@