Skip to content

feat(backend): add websocket schedule operations - #108

Merged
LUPENGHAN merged 5 commits into
1024XEngineer:MVPfrom
yyy-router:feature/backend-ws-schedules
Jul 30, 2026
Merged

LUPENGHAN merged 5 commits into
1024XEngineer:MVPfrom
yyy-router:feature/backend-ws-schedules

Conversation

@yyy-router

Copy link
Copy Markdown
Contributor

变更说明

  • 新增日程业务服务,支持创建、更新、类型校验和时间冲突提示
  • 新增 SQLAlchemy 日程仓储,实现查询、保存和冲突检测
  • 实现 schedule.upsert.command WebSocket 消息处理
  • 实现 schedule.list.query WebSocket 消息处理
  • 在应用组合根注册日程消息 handler
  • 补充业务服务、仓储和 WebSocket handler 测试

验证结果

  • uv run ruff check .
  • uv run mypy
  • uv run pytest -q,共 80 个测试通过
  • 已完成 WebSocket 连接、日程创建更新和列表查询端到端测试

Closes #107

@fennoai fennoai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review summary

Found three issues affecting schedule isolation, input error handling, and chronological ordering.

Verification: python3 -m compileall -q backend/src backend/tests and git diff --check origin/MVP...HEAD passed. The project test/lint/type-check commands could not run because uv is unavailable in this environment.

View job run

Comment thread backend/src/timeflow/infrastructure/websocket/handlers/schedules.py
Comment thread backend/src/timeflow/business/schedules.py Outdated
Comment thread backend/src/timeflow/data/schedule_repository.py
@LUPENGHAN
LUPENGHAN merged commit 6ffba94 into 1024XEngineer:MVP Jul 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants