From 047b59a1f398c52c3c8d454ae5301861d9c63a91 Mon Sep 17 00:00:00 2001 From: leocrm-bot Date: Sat, 4 Jul 2026 18:14:30 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20broken=20service=20re-exports?= =?UTF-8?q?=20from=20=5F=5Finit=5F=5F.py=20=E2=80=94=20fixes=20ImportError?= =?UTF-8?q?=20on=20startup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .a0/project_state.json | 27 ++++++++++++++------------- app/services/__init__.py | 40 +++++++--------------------------------- 2 files changed, 21 insertions(+), 46 deletions(-) diff --git a/.a0/project_state.json b/.a0/project_state.json index 6cca7cc..745b188 100644 --- a/.a0/project_state.json +++ b/.a0/project_state.json @@ -1,27 +1,28 @@ { "project_name": "leocrm", - "phase": "phase-6-complete", - "status": "phase_6_deployment_complete", - "last_commit": "1d3fccc", + "phase": "phase-6-deployment-broken", + "status": "coolify_app_down_unhealthy", + "last_commit": "1c05936", "forgejo_synced": true, "completed_tasks": ["T01","T02","T03","T04","T05","T06","T07a","T07b","T08a","T08b","T08c","T09","T10","T11"], - "current_task": null, + "current_task": "fix-coolify-deployment", "next_task": "phase7-release", "test_results": { - "backend_tests": "564/564 passed", - "frontend_tests": "318/318 passed", + "backend_tests": "564/564 passed (as of 2026-07-02)", + "frontend_tests": "318/318 passed (as of 2026-07-02)", "coverage": "85.41%" }, "runtime_results": { - "app_start": "successful", - "health_endpoint": "200 OK", - "swagger": "200 OK" + "app_start": "unknown — needs verification after redeploy", + "health_endpoint": "unknown — Coolify status exited:unhealthy", + "swagger": "unknown" }, "deployment_results": { "url": "https://crm.media-on.de", - "status": "running:healthy", - "health_check": "200 OK", - "swagger": "200 OK" + "status": "exited:unhealthy", + "health_check": "not responding", + "swagger": "unknown", + "coolify_uuid": "stvabl4vaqru7jclx4ittzr3" }, - "updated_at": "2026-07-02T09:27:00+02:00" + "updated_at": "2026-07-04T18:10:00+02:00" } diff --git a/app/services/__init__.py b/app/services/__init__.py index 3809b1d..3e54b4c 100644 --- a/app/services/__init__.py +++ b/app/services/__init__.py @@ -1,34 +1,8 @@ -"""Service layer package.""" +"""Service layer package. -from app.services.address_service import address_service # noqa: F401 -from app.services.ai_copilot_service import ( - execute_action as copilot_execute_action, # noqa: F401 -) -from app.services.ai_copilot_service import ( - get_history as copilot_get_history, # noqa: F401 -) -from app.services.ai_copilot_service import ( - process_query as copilot_process_query, # noqa: F401 -) -from app.services.attachment_service import attachment_service # noqa: F401 -from app.services.currency_service import currency_service # noqa: F401 -from app.services.plugin_service import PluginService, get_plugin_service # noqa: F401 -from app.services.sequence_service import sequence_service # noqa: F401 -from app.services.system_settings_service import system_settings_service # noqa: F401 -from app.services.tax_service import tax_service # noqa: F401 -from app.services.workflow_service import ( - advance_instance, # noqa: F401 - auto_reject_timeout, # noqa: F401 - cancel_instance, # noqa: F401 - check_timeout, # noqa: F401 - create_instance, # noqa: F401 - create_workflow, # noqa: F401 - delete_workflow, # noqa: F401 - find_workflows_for_event, # noqa: F401 - get_instance, # noqa: F401 - get_workflow, # noqa: F401 - list_instances, # noqa: F401 - list_workflows, # noqa: F401 - start_instance_for_event, # noqa: F401 - update_workflow, # noqa: F401 -) +Routes import service modules directly, e.g.: + from app.services import address_service + +This works via Python's module system without needing +explicit re-exports in __init__.py. +"""