Phase 0: Project restructure to ReviewIQ platform architecture
New structure: - scrapers/google_reviews/v1_0_0.py (was modules/scraper_clean.py) - scrapers/base.py (BaseScraper interface) - scrapers/registry.py (ScraperRegistry for version routing) - core/database.py, models.py, config.py, enums.py - utils/logger.py, crash_analyzer.py, health_checks.py, helpers.py, date_converter.py - workers/chrome_pool.py - services/webhook_service.py - api/ routes structure (empty, ready for Phase 2) - tests/ structure mirroring source All imports updated in: - api_server_production.py (7 import paths updated) - utils/health_checks.py (scraper import path) Legacy modules moved to modules/_legacy/: - data_storage.py, image_handler.py, s3_handler.py (unused) Syntax verified, frontend build passing. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -20,13 +20,13 @@ from fastapi.middleware.cors import CORSMiddleware
|
||||
from pydantic import BaseModel, HttpUrl, Field
|
||||
from fastapi.responses import JSONResponse, StreamingResponse
|
||||
|
||||
from modules.database import DatabaseManager, JobStatus
|
||||
from modules.webhooks import WebhookDispatcher, WebhookManager
|
||||
from modules.health_checks import HealthCheckSystem
|
||||
from modules.scraper_clean import fast_scrape_reviews, LogCapture, get_business_card_info # Clean scraper
|
||||
from modules.crash_analyzer import analyze_crash, summarize_crash_patterns, apply_auto_fix
|
||||
from modules.structured_logger import StructuredLogger, LogEntry
|
||||
from modules.chrome_pool import (
|
||||
from core.database import DatabaseManager, JobStatus
|
||||
from services.webhook_service import WebhookDispatcher, WebhookManager
|
||||
from utils.health_checks import HealthCheckSystem
|
||||
from scrapers.google_reviews.v1_0_0 import fast_scrape_reviews, LogCapture, get_business_card_info # Clean scraper
|
||||
from utils.crash_analyzer import analyze_crash, summarize_crash_patterns, apply_auto_fix
|
||||
from utils.logger import StructuredLogger, LogEntry
|
||||
from workers.chrome_pool import (
|
||||
start_worker_pools,
|
||||
stop_worker_pools,
|
||||
get_validation_worker,
|
||||
|
||||
Reference in New Issue
Block a user