fix: 校验必需信任内容完整性
This commit is contained in:
1 parent
5ed06b1abe
commit
0c5ff79b42
4 files changed
+71
-10
No files matched your search
@@ -21,3 +21,11 @@
|
||||
- API integration:37/37 通过,包含模板化信任类型声明和历史类型迁移。
|
||||
- readiness 集成测试验证取消发布餐饮必需的 `schedule` 后无法通过发布检查。
|
||||
- 全量 lint、Admin production build、Prisma validate、模板包验证:通过。
|
||||
|
||||
## 发布内容有效性加固
|
||||
|
||||
- 通用信任内容检查仅接受标题和正文去除首尾空格后均非空的已发布条目。
|
||||
- 模板声明的 required 信任类型也按相同规则判定;readiness 提示明确说明标题和详细内容都必填,并保留模板提供的说明。
|
||||
- API 集成测试覆盖取消发布、空白标题、空白正文均失败,以及恢复完整内容后重新通过;测试使用 `finally` 恢复数据库记录。
|
||||
- 验证:API integration 37/37、typecheck、lint、Admin production build、template validation、`git diff --check` 通过。
|
||||
- `pnpm format:check` 仍报告两个未由本任务改动的模板 JSON 格式告警:`packages/template-acheng-campus-food/template.json` 和 `packages/template-linjing-editorial/template.json`;本次改动文件已单独通过 Prettier。
|
||||
Reference in new issue
Block a user