Repository navigation
Commit af160d6
committed
fix(sessions): return no sessions for an empty user id without querying
The Firestore backend rejects a document path with an empty segment
(400 InvalidArgument, checked against the emulator), so list_sessions
with user_id="" raised instead of returning an empty list, and
create_session cannot store a session for that user either.1 parent e44692c commit af160d6
2 files changed
Lines changed: 6 additions & 12 deletions
File tree
- src/google/adk/integrations/firestore
- tests/unittests/integrations/firestore
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
371 | 375 | | |
372 | 376 | | |
373 | 377 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
962 | 962 | | |
963 | 963 | | |
964 | 964 | | |
965 | | - | |
| 965 | + | |
966 | 966 | | |
967 | 967 | | |
| 968 | + | |
968 | 969 | | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | 970 | | |
980 | 971 | | |
981 | 972 | | |
| |||
984 | 975 | | |
985 | 976 | | |
986 | 977 | | |
987 | | - | |
988 | 978 | | |
989 | 979 | | |
990 | 980 | | |
| |||
0 commit comments