From 0b89833c32afd75fbd8e3aae778c23583a9da91d Mon Sep 17 00:00:00 2001 From: Ryan Kegel Date: Fri, 31 Jul 2026 15:59:19 -0400 Subject: [PATCH] feat: update environment variables to set DATA_ENV and DB_ENV to 'prod' --- .opencode/agents/developer.md | 4 ++-- .opencode/agents/writer.md | 2 +- backend/api/admin_api.py | 8 ++++---- docker-compose.test.yml | 2 ++ docker-compose.yml | 2 ++ 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.opencode/agents/developer.md b/.opencode/agents/developer.md index 26fdd32..f09f6ce 100644 --- a/.opencode/agents/developer.md +++ b/.opencode/agents/developer.md @@ -2,8 +2,8 @@ name: Developer description: Implements core application features across Python backends and Vue frontends. mode: subagent -model: moonshotai/kimi-k2.7-code -temperature: 0.2 +model: "deepseek/deepseek-v4-pro" +thinking: "enabled" maxSteps: 50 permission: edit: allow diff --git a/.opencode/agents/writer.md b/.opencode/agents/writer.md index 3f2d966..e0dae2c 100644 --- a/.opencode/agents/writer.md +++ b/.opencode/agents/writer.md @@ -1,7 +1,7 @@ --- description: "Drafts and updates technical documentation, architecture guides, and API specs." mode: "subagent" -model: "deepseek/deepseek/deepseek-v4-flash" +model: "deepseek/deepseek-v4-flash" permission: edit: allow bash: deny diff --git a/backend/api/admin_api.py b/backend/api/admin_api.py index 1e6c973..fafca73 100644 --- a/backend/api/admin_api.py +++ b/backend/api/admin_api.py @@ -212,10 +212,10 @@ def create_test_digest_token(): def send_test_digest(): """Trigger a digest email for a specific user by email address. - Only active when DB_ENV is not 'production'. Requires admin authentication. + Only active when DB_ENV is not 'prod'. Requires admin authentication. Note: actual email delivery is skipped in e2e mode by email_sender. """ - if os.environ.get('DB_ENV') == 'production': + if os.environ.get('DB_ENV') == 'prod': return jsonify({'error': 'Not found', 'code': 'NOT_FOUND'}), 404 user_id = get_validated_user_id() @@ -253,10 +253,10 @@ def send_test_digest(): def trigger_test_chore_expiry(): """Trigger the chore expiry notification check for a specific user by email address. - Only active when DB_ENV is not 'production'. Requires admin authentication. + Only active when DB_ENV is not 'prod'. Requires admin authentication. Note: actual push delivery requires VAPID keys to be configured. """ - if os.environ.get('DB_ENV') == 'production': + if os.environ.get('DB_ENV') == 'prod': return jsonify({'error': 'Not found', 'code': 'NOT_FOUND'}), 404 user_id = get_validated_user_id() diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 24aaac2..7621e40 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -24,6 +24,8 @@ services: - ADMIN_FIRST_NAME=${ADMIN_FIRST_NAME} - ADMIN_LAST_NAME=${ADMIN_LAST_NAME} - MONGO_URI=${MONGO_URI} + - DATA_ENV=test + - DB_ENV=test volumes: - chores-test-app-backend-data:/app/data diff --git a/docker-compose.yml b/docker-compose.yml index d6348f9..118176e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,6 +16,8 @@ services: - VAPID_PUBLIC_KEY=${VAPID_PUBLIC_KEY} - VAPID_PRIVATE_KEY=${VAPID_PRIVATE_KEY} - MONGO_URI=${MONGO_URI} + - DATA_ENV=prod + - DB_ENV=prod volumes: - chores-app-backend-data:/app/data # Assuming backend data storage; adjust path as needed networks: