Fundamental_Analysis/services/report-generator-service/src
Lv, Qi 0c975bb8f1 Refactor: Remove legacy analysis results and implement workflow history
- **Common Contracts**: Updated DTOs and models to support workflow history; removed legacy analysis result DTOs.
- **Data Persistence Service**:
    - Removed `analysis_results` table logic and API endpoints.
    - Implemented `workflow_history` API and DB access (`history.rs`).
    - Fixed compilation errors and updated tests.
    - Exposed Postgres port in `docker-compose.yml` for easier debugging/offline checks.
- **API Gateway**:
    - Implemented `history` endpoints (get history list, get by ID).
    - Removed legacy `analysis-results` endpoints.
    - Fixed routing and handler logic in `api.rs`.
- **Report Generator Service**:
    - Removed dependency on legacy `analysis-results` persistence calls.
    - Fixed compilation errors.
- **Workflow Orchestrator**: Fixed warnings and minor logic issues.
- **Providers**: Updated provider services (alphavantage, tushare, finnhub, yfinance, mock) to align with contract changes.
- **Frontend**:
    - Updated `ReportPage` and stores to use new workflow history.
    - Added `RecentReportsDropdown` component.
    - Cleaned up `RealtimeLogs` component.
- **Documentation**: Moved completed design tasks to `completed/` and added refactoring context docs.

Confirmed all services pass `cargo check`.
2025-11-29 14:46:44 +08:00
..
api.rs WIP: Commit all pending changes across services, frontend, and docs 2025-11-27 02:45:56 +08:00
config.rs feat: Refactor Analysis Context Mechanism and Generic Worker 2025-11-28 20:11:17 +08:00
error.rs chore: 提交本轮 Rust 架构迁移相关改动 2025-11-16 20:55:46 +08:00
llm_client.rs WIP: Commit all pending changes across services, frontend, and docs 2025-11-27 02:45:56 +08:00
main.rs feat: Refactor Analysis Context Mechanism and Generic Worker 2025-11-28 20:11:17 +08:00
message_consumer.rs feat: Refactor Analysis Context Mechanism and Generic Worker 2025-11-28 20:11:17 +08:00
persistence.rs Refactor: Remove legacy analysis results and implement workflow history 2025-11-29 14:46:44 +08:00
state.rs Refactor E2E tests and improve error handling in Orchestrator 2025-11-21 20:44:32 +08:00
templates.rs chore: 提交本轮 Rust 架构迁移相关改动 2025-11-16 20:55:46 +08:00
worker.rs Refactor: Remove legacy analysis results and implement workflow history 2025-11-29 14:46:44 +08:00