fix: [P1] 4个 rules trigger.operator 为 null - Closes #22 #23

Merged
pzhang_zywl merged 1 commits from dev/issue-22-fix-trigger-null into main 2026-05-31 19:54:34 +08:00
Owner

Summary

step3 新增 _normalize_rule() 标准化函数:

  • 缺失 trigger → 补充默认 trigger + conditions
  • operator 为 null → 默认 "=="
  • conditions 为空 → 补充默认 condition

Test

  • pytest 全量通过 (79 passed, 13 skipped)

Closes #22


[da-01]

## Summary step3 新增 `_normalize_rule()` 标准化函数: - 缺失 trigger → 补充默认 trigger + conditions - operator 为 null → 默认 "==" - conditions 为空 → 补充默认 condition ## Test - [x] pytest 全量通过 (79 passed, 13 skipped) Closes #22 --- [da-01]
pzhang_zywl added 1 commit 2026-05-31 19:54:02 +08:00
- 新增 _normalize_rule 函数,对合并后的 rules 进行标准化
- 缺失 trigger → 补充默认 trigger + conditions
- trigger.operator 为 null → 默认设为 "=="
- trigger.conditions 为空 → 补充默认 condition

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
pzhang_zywl merged commit 6652784aa8 into main 2026-05-31 19:54:34 +08:00
Sign in to join this conversation.