Open
Conversation
fix: persist workspace data symlink setup in install
fix: 统一看板时间解析并按本地时区显示
修复 TaskService 创建任务时传入 meta 与 Task 模型字段不一致的问题,避免运行时构造任务失败。同步将任务序列化输出的 _scheduler 统一为 scheduler,并回传 meta,降低前后端字段歧义。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Task模型补齐metaJSONB 字段,修复TaskService.create_task()传入meta时与模型定义不一致的问题。Task.to_dict()输出键名:将历史_scheduler输出调整为scheduler,并补充返回meta,减少前后端字段歧义。task.created事件 payload 中补充meta,保证事件消费者可获得完整上下文。Why
meta,但模型缺失该字段,存在运行时构造任务失败风险。scheduler语义,继续输出_scheduler会造成兼容与维护成本。Verification
python3 -m py_compile edict/backend/app/models/task.py edict/backend/app/services/task_service.py edict/backend/app/api/tasks.pyImpact
edict/backend/app/models/task.py、edict/backend/app/services/task_service.pytasks表且未自动同步列定义,需要确认meta列迁移策略。