Fundamental_Analysis/docs/3_project_management/tasks/completed
Lv, Qi 427776b863 feat(analysis): Implement Configurable Analysis Template Engine
This commit introduces a comprehensive, template-based analysis orchestration system, refactoring the entire analysis generation workflow from the ground up.

Key Changes:

1.  **Backend Architecture (`report-generator-service`):**
    *   Replaced the naive analysis workflow with a robust orchestrator based on a Directed Acyclic Graph (DAG) of module dependencies.
    *   Implemented a full topological sort (`petgraph`) to determine the correct execution order and detect circular dependencies.

2.  **Data Models (`common-contracts`, `data-persistence-service`):**
    *   Introduced the concept of `AnalysisTemplateSets` to allow for multiple, independent, and configurable analysis workflows.
    *   Created a new `analysis_results` table to persist the output of each module for every analysis run, ensuring traceability.
    *   Implemented a file-free data seeding mechanism to populate default analysis templates on service startup.

3.  **API Layer (`api-gateway`):**
    *   Added a new asynchronous endpoint (`POST /analysis-requests/{symbol}`) to trigger analysis workflows via NATS messages.
    *   Updated all configuration endpoints to support the new `AnalysisTemplateSets` model.

4.  **Frontend UI (`/config`, `/query`):**
    *   Completely refactored the "Analysis Config" page into a two-level management UI for "Template Sets" and the "Modules" within them, supporting full CRUD operations.
    *   Updated the "Query" page to allow users to select which analysis template to use when generating a report.

This new architecture provides a powerful, flexible, and robust foundation for all future development of our intelligent analysis capabilities.
2025-11-18 07:47:08 +08:00
..
20251109_[Active]_rust_data_service_design.md reorg docs 2025-11-17 00:58:43 +08:00
20251109_[Archived]_microservice_refactoring_plan.md reorg docs 2025-11-17 00:58:43 +08:00
20251109_[Archived]_tasks.md reorg docs 2025-11-17 00:58:43 +08:00
20251109_[Archived]_us_market_integration_tasks.md reorg docs 2025-11-17 00:58:43 +08:00
20251116_[Active]_refactor_llm_provider_architecture.md feat(config): 将服务配置全面迁移至数据库 2025-11-18 05:58:18 +08:00
20251116_[Archived]_rust_microservice_refactoring_plan.md reorg docs 2025-11-17 00:58:43 +08:00
20251117_[Active]_implement_analysis_orchestrator.md feat(analysis): Implement Configurable Analysis Template Engine 2025-11-18 07:47:08 +08:00
20251117_[Active]_refactor_configuration_management.md feat(config): 将服务配置全面迁移至数据库 2025-11-18 05:58:18 +08:00