Repository navigation
Commit 30b6d50
authored
fix(compat): set last_updated when storing a task in v0.3 format (a2aproject#1372)
## Problem
`core_to_compat_task_model` left `last_updated` unset, so in
zero-downtime migration mode `ListTasks` with `status_timestamp_after`
returned nothing.
## Fix
Set it from `status.timestamp`, as the v1.0 path in `DatabaseTaskStore`
does.
## Tests
`test_task_db_conversion_sets_last_updated` fails on main. 2305 passed.
Fixes a2aproject#13711 parent 261c074 commit 30b6d50
2 files changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
1963 | 1965 | | |
1964 | 1966 | | |
1965 | 1967 | | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
1966 | 1980 | | |
1967 | 1981 | | |
1968 | 1982 | | |
| |||
0 commit comments