Repository navigation
Commit dcbca6c
chore(todo): fix owner lookup ref + completed-task seed validation (#2008)
Two app-todo defects found driving it end-to-end:
1. todo_task.owner was Field.lookup('user') — `user` is not a registered
object/table (the platform user object is `sys_user`), so seed-time owner
resolution flooded "no such table: user". Repointed to `sys_user` and
dropped the unresolvable `owner: 'admin'` seed value (no stable seed key for
the auth-created bootstrap admin).
2. The two `completed` seed tasks omitted `completed_date`, violating the
object's own `completed_date_required` validation → they silently failed to
seed (only 6 of 8 rows loaded). Gave them a completed_date.
Verified: 0 "no such table: user" errors, 0 rule_violations, all 8 rows seed;
validation still rejects a completed task with no completed_date (400);
aggregation/reports unaffected.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 9afeb2d commit dcbca6c
3 files changed
Lines changed: 21 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
0 commit comments